Bug #5717

truncating group descriptions breaks html

Added by mish over 2 years ago. Updated over 2 years ago.

Status:New Start:06/01/2009
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Resolution:


Description

If you go to http://london.indymedia.org/groups/show_all and look at post fact media, their description is short, and if you look at the source, it actually truncates in the middle of a tag, which is not great.

So be nice to truncate in a more clever way that only counts characters outside tags ...

If we had a truncate_html method this would help. As part of that, writing a html_length_of function, along with validates_html_length_of would improve the action alerts handling related to issue #5695.

History

Updated by yossarian over 2 years ago

There is a strip html method hanging around somewhere, if we used that before truncate it might do the job?

Also available in: Atom PDF