You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. <?php
  2. class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform
  3. {
  4. /**
  5. * @type string
  6. */
  7. public $name = "SafeEmbed";
  8. /**
  9. * @param array $attr
  10. * @param HTMLPurifier_Config $config
  11. * @param HTMLPurifier_Context $context
  12. * @return array
  13. */
  14. public function transform($attr, $config, $context)
  15. {
  16. $attr['allowscriptaccess'] = 'never';
  17. $attr['allownetworking'] = 'internal';
  18. $attr['type'] = 'application/x-shockwave-flash';
  19. return $attr;
  20. }
  21. }
  22. // vim: et sw=4 sts=4