HTML to XHTML
Tutorials Shared by the Internet Community
Total Hits - 15894
Total Votes - 98 votes
Vote Up - 42 votes
Vote Down - 56 votes
Domain - www.roscripts.com
Category - PHP/Content Management
Submitted By - Devesh Khanna
Submitted on - 2008-03-16 02:59:47
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. ...