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

text_helper: improved character limiter to keep html tags intact #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kstenschke
Copy link
Contributor

added method: truncateHtml, and used it within character limiter. When using it now eg. when displaying search results, html tags of truncated articles are kept intact. (before this fix, such a truncation might have resulted in display of not closed tags, possibly displaying following content wrong as of automatical correction by the browser, or leading to incorrect html markup)

added method: truncateHtml, and used it within character limiter. When using it now eg. when displaying search results, html tags of truncated articles are kept intact. (before this fix, such a truncation might have resulted in display of not closed tags, possibly displaying following content wrong as of automatical correction by the browser, or leading to incorrect html markup)
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

Successfully merging this pull request may close these issues.

None yet

1 participant