Haven't tried it, but you may want to look into the :fixup_tags option. --Matt Jones
On Sep 25, 2:29 am, flyerhzm <flyer...@gmail.com> wrote: > I have use hpricot to translate users' input html. I want to remove > bogusetag as follows: > > >>doc = Hpricot "<p> test world</b></p>", :xhtml_strict => true > > =>#<Hpricot::Doc {elem <p> " test world" {bogusetag </b>} </p>}>>>doc.to_s > > =>"<p> test world</b></p>" > > what I expected is "<p>test world</p>" without bogusetag </b>, is it > possible? --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---