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