Hi, Is anyone aware of a nice gem or way that will allow me to edit the content of all html tags except <pre> tags? Cheers, josh -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Josh
> Is anyone aware of a nice gem or way that will allow me to edit the
> content of all html tags except <pre> tags?
Look at hpricot: (see the example at the top of the page)
http://code.whytheluckystiff.net/hpricot/
and this hpricot extension:
http://henrik.nyh.se/2007/03/transform-all-text-nodes-excepting-elements-with-hpricot
Alain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Alain Ravet wrote:> Josh > > > Is anyone aware of a nice gem or way that will allow me to edit the > > content of all html tags except <pre> tags? > > Look at hpricot: (see the example at the top of the page) > http://code.whytheluckystiff.net/hpricot/ > and this hpricot extension: > http://henrik.nyh.se/2007/03/transform-all-text-nodes-excepting-elements-with-hpricot > > Alainthanks, looks like exactly what is needed. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---