1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-08 23:26:39 +02:00

Implement Internet Explorer compatibility code for embedded content.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang
2010-03-08 01:56:40 -05:00
parent baa477ac08
commit 0229458f8f
8 changed files with 81 additions and 14 deletions

View File

@@ -25,6 +25,11 @@ $youtube_purifier = new HTMLPurifier(array(
'Filter.YouTube' => true,
));
$safeobject_purifier = new HTMLPurifier(array(
'HTML.SafeObject' => true,
'Output.FlashCompat' => true,
));
?>
<h2>Unpurified</h2>
<p><a href="?break">Click here to see the unpurified version (breaks validation).</a></p>
@@ -42,6 +47,11 @@ echo $regular_purifier->purify($string);
echo $youtube_purifier->purify($string);
?></div>
<h2>With SafeObject exception and flash compatibility</h2>
<div><?php
echo $safeobject_purifier->purify($string);
?></div>
</body>
</html>
<?php