Posted By

jmccartie on 05/18/11


Tagged


Versions (?)

"strip tags" with Nokogiri


 / Published in: Ruby
 

  1. doc = Nokogiri::HTML(your_html)
  2. doc.xpath("//text()").remove

Report this snippet  

You need to login to post a comment.