Hi Folks,

Good evening,

I used the code which i print below,

Yes i got the result , but i need the result like this "TruncateHtml is 
jus....(continued)"

some_html = '<ul><li><a href="http://whatever";>TruncateHtml is just like the 
vanilla truncate rails helper , TruncateHtml is just like the vanilla truncate 
rails helper</a></li></ul>'

truncate_html(some_html, :length => 15, :omission => '...(continued)')
  => <ul><li><a href="http://whatever";>This...(continued)</a></li></ul>

please advice.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/ZMCPdfHXP6sJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to