Best Tutorials website


HTML to XHTML

HTML to XHTML

This is a very handy function if you want to clean up your content before storing it into your database. It uses 'eregi_replace' to replace every character with the desired one. I would use it to convert a HTML code to XHTML to make it valid.

It has only 4 characters right now but it can be extended to an unlimited number in order to output a really clean content.




Views: 641 | Rating star | by Mark




View this tutorial
Broken link Report broken link?