PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
htmlpurifier
/
smoketests
<?php require_once 'common.php'; $config = HTMLPurifier_Config::createDefault(); $config->set('HTML.Doctype', 'HTML 4.01 Strict'); $config->set('HTML.Allowed', 'b,a[href],br'); $config->set('CSS.AllowTricky', true); $config->set('URI.Disable', true); $serial = $config->serialize(); $result = unserialize($serial); $purifier = new HTMLPurifier($result); echo htmlspecialchars($purifier->purify('<b>Bold</b><br><i><a href="http://google.com">no</a> formatting</i>'));
[+]
..
[-] img.png
[edit]
[-] xssAttacks.php
[edit]
[-] xssAttacks.xml
[edit]
[+]
basic
[-] cacheConfig.php
[edit]
[-] extractStyleBlocks.php
[edit]
[-] dataScheme.php
[edit]
[-] all.php
[edit]
[-] basic.php
[edit]
[-] variableWidthAttack.php
[edit]
[-] common.php
[edit]
[-] configForm.php
[edit]
[-] innerHTML.js
[edit]
[-] innerHTML.html
[edit]
[-] preserveYouTube.php
[edit]
[-] attrTransform.xml
[edit]
[-] printDefinition.php
[edit]
[-] attrTransform.php
[edit]
[+]
test-schema