search for: html_truncat

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

Did you mean: html_truncate
2007 Mar 29
1
improving on: truncate(..) + rendered text ?
...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 white_list to clean the <script>..) I guess there are only 2 alternatives: - a smart html_truncate(..) or - "unrender" the text (html => plain text) Has anybody explored those directions? TIA Alain Ravet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post...