Ruby based HTML - to - text converter?

All,

I am interested in trying to generate a text version of an HTML
document.

Does any one know of any modules that may be of use to me?

A cursory search has not yielded any results.

Thanks,
Wes

Wes G. wrote:

All,

I am interested in trying to generate a text version of an HTML
document.

Does any one know of any modules that may be of use to me?

A cursory search has not yielded any results.

Thanks,
Wes

there is a built-in method that does just that.

sanitize(html) and strip_tags(html) are along the lines of what you’re
talking about.

See the docs:
http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000516

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs