You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When displaying a truncated text from this library with Twig, it displaying html entities because Twig safely encodes &.
Actually I expected UTF-8 characters are returned as is:
truncateMarkup('<p>PHP éléphant</p>', 7)
Expected:
PHP élé...
Actually:
PHP élé
I understand this makes sense, but there should be a way to disable html entities, i.e by calling html_entity_decode on truncated text before returning it (which is what we are currently doing on our side).
The text was updated successfully, but these errors were encountered:
When displaying a truncated text from this library with Twig, it displaying html entities because Twig safely encodes
&
.Actually I expected UTF-8 characters are returned as is:
truncateMarkup('<p>PHP éléphant</p>', 7)
Expected:
PHP élé...
Actually:
PHP élé
I understand this makes sense, but there should be a way to disable html entities, i.e by calling
html_entity_decode
on truncated text before returning it (which is what we are currently doing on our side).The text was updated successfully, but these errors were encountered: