Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: e517dc8ab7
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.949 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="xhtml_purifier.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function clean() {
var html = document.getElementById('html').value;
var clean_html = XHTMLPurifier.purify(html);
document.getElementById('clean_html').value = clean_html;
<h1>XHTML Purifier</h1>
<p>This is a small test page for the Javascript XHTML Purifier</p>
<textarea id="html" name="html" rows="10" cols="80"></textarea>
<textarea id="clean_html" name="clean_html" rows="10" cols="80"></textarea>
<a href="#" onclick="clean(); false;">Clean HTML</a>
Jump to Line
Something went wrong with that request. Please try again.