Html to plain text using webrat and nokogiri

Posted by anup.narkhede on November 20, 2009

Here is a snippet to parse a given http response into plain text. Basically it removes html tags, css blocks, script tags and yield visible text elements as seen in browser.

Gives:

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

Comments