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

FIX: truncating a string fail when last space is within a tag #978

Merged
merged 0 commits into from
Aug 3, 2013

Conversation

rdeutz
Copy link
Contributor

@rdeutz rdeutz commented Apr 12, 2013

when you have a string "..... this is text
Here is the limit" and the limit is within "Here". The next space is the space between
(there could also be any other tag with spaces) what is wrong because we end up with not valid html code. The right place is the space between "is" and "text".

This fix is checking if the place is within a tag and moves it before the tag.

@rdeutz
Copy link
Contributor Author

rdeutz commented Apr 12, 2013

related tracker item: #30552, Patch included

@nicksavov
Copy link
Contributor

Thanks for coding this, Robert!

For anyone interested, here's the direct link to tracker item on JoomlaCode:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30552

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

3 participants