Ensuring all HTML tags close in text fields

Does anyone know of a way/method/plugin for ensuring HTML tags all close
and/or close them automatically when the data is pulled or pushed into
the database???

On Wed, Nov 05, 2008 at 10:38:05PM +0100, Luke G. wrote:

Does anyone know of a way/method/plugin for ensuring HTML tags all close
and/or close them automatically when the data is pulled or pushed into
the database???

Look into Hpricot. Doing Hpricot(htmltext).to_html will give you
well-formed (i.e. all tags close) HTML.

–Greg

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