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:
@@ -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
|
||||
|
Reference in New Issue
Block a user