Advertisement
3_2004-2005 System Services/ Functions #147483

Translate HTML to XHTML On The Fly

Uses the html tidy component to translate html code to valid xhtml code on the fly. Great for using with html generated by rich-text boxes such as http://www.kevinroth.com/rte/demo.htm.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Download the html tidy compiled dll from http://tidy.sourceforge.net/. Place the dll in your binaries folder and register it.<br><br>
Create default.tidy in the folder of your choice, and add the following lines to it:<br>
output-xhtml: yes<br>
alt-text: ""<br><br>
Make sure to assign the sTidyConfigFile variable (in the code attached) to the correct path to your config file.<br><br>
Use the HTML2XHTML function (attached) to translate your code.
Original Comments (3)
Recovered from Wayback Machine