HTMLPurifier Live Demo

set('Core', 'TidyFormat', !empty($_POST['tidy'])); $purifier = new HTMLPurifier($config); $pure_html = $purifier->purify($html); ?>

Here is your purified HTML:

Here is the source code of the purified HTML:

Welcome to the live demo. Enter some HTML and see how HTMLPurifier will filter it.

HTML
Nicely format output with Tidy? />

Return to HTMLPurifier's home page.