Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>xhtml_purifier</title>
<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;
}
</script>
</head>
<body>
<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>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.