search for: bad_tag

Displaying 1 result from an estimated 1 matches for "bad_tag".

Did you mean: bad_tags
2007 Mar 29
1
improving on: truncate(..) + rendered text ?
Hello all, In a summary page I need to show the 1st 100 chars of textilized messages. Problem: truncate(..) would often cut in the middle of html tags => random result. My first idea was to "repair" the broken text with Hpricot (as I use it elsewhere in the project), but it''s not perfect: <h1>abcd</h would give <h1>abcd</h</h1> (I also use