SafeEmbed.php 381 B

123456789101112131415
  1. <?php
  2. class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform
  3. {
  4. public $name = "SafeEmbed";
  5. public function transform($attr, $config, $context) {
  6. $attr['allowscriptaccess'] = 'never';
  7. $attr['allownetworking'] = 'internal';
  8. $attr['type'] = 'application/x-shockwave-flash';
  9. return $attr;
  10. }
  11. }
  12. // vim: et sw=4 sts=4