Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special character > is translated differently #825

Closed
jimmysjolund opened this issue May 9, 2016 · 4 comments
Closed

Special character > is translated differently #825

jimmysjolund opened this issue May 9, 2016 · 4 comments

Comments

@jimmysjolund
Copy link

When using the character > in text, such as text arrow ->, it translates correctly in the actual blog post. But in the blog roll (so to speak) it will get translated to &gt; . Further if I use a workaround such as <i class="fa fa-long-arrow-right"></i> it doesn't show anything in the blog roll but show the arrow when reading the actual blog post.

.

@jimmysjolund
Copy link
Author

Should probably mention I was using the theme "antimatter".

@flaviocopes
Copy link
Contributor

Quick fix: add === in a line to add a manual summary, it's not affected by this problem.

The automatic summary calculation strips HTML tags (fine) but also encodes html entities. @rhukster should we decode them before returning the summary?

return html_entity_decode(Utils::truncateHTML($content, $size)); in https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Page/Page.php#L503 ?

@rhukster
Copy link
Member

rhukster commented May 9, 2016

Yes, i think that is what's needed. I'll add it.

@rhukster
Copy link
Member

rhukster commented May 9, 2016

Fixed for next release

@rhukster rhukster closed this as completed May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants