The Regex Library

Text To HTML Samples

Cleaning up Character Entities

This snipet is great for cleaning HTML pages. It searches through a section of text and adds the trailing semicolon to the text entities. For example a code such as: &lt or &gt is changed into the proper form as: < and >

This site hand-coded for your protection.