I am trying to replace a <blockquote> tag with text in an HTMl document. I started off using Nokogiri to do this. The problem is the HTML I pass to Nokogiri contains text like <my_mail@gmail.com> which nokogiri considers as a tag. The output is all screwed because Nokogiri tries to correct the “tag” by adding </my_mail> to the html doc.
Any ideas how to turn off this auto correction in Nokogiri or are there any other gems I can use to do this without screwing the output?
You can escape
<and>around mail before sending string to Nokogiri.