mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-24 09:11:52 +00:00
36bd06d53e
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1781 48356398-32a2-884e-a903-53898d9a118a
14 lines
359 B
PHP
14 lines
359 B
PHP
<?php
|
|
|
|
class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform
|
|
{
|
|
public $name = "SafeEmbed";
|
|
|
|
public function transform($attr, $config, $context) {
|
|
$attr['allowscriptaccess'] = 'never';
|
|
$attr['allownetworking'] = 'internal';
|
|
$attr['type'] = 'application/x-shockwave-flash';
|
|
return $attr;
|
|
}
|
|
}
|