getgrav / getgrav/grav-plugin-feed

  rendering in titles

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
19
Forks
14
PR merge metrics
No merged PRs in 30d

Description

In French, a non-breaking space is used before double punctuation marks (: ; ! ?) and between quotation marks and text (« texte »).
If page titles contain a non-breaking space, in feeds ` ` become ` `, causing “` `” to appear in title.
There is no such problem with the content of the page.

So, in templates, why not use: `{{ item.title|safe_truncate_html()|raw }}`, in the same way as for content
Instead of: `{{ item.title|e }}` ?

(problem encountered elsewhere: https://github.com/pmoreno-rodriguez/grav-theme-mundana/pull/22#issuecomment-3239275958)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the feed template that renders item titles and compare its escaping with the content template referenced in the issue. Reproduce a feed entry whose title contains a non-breaking space, then verify that the generated title preserves it without displaying the entity text.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.