HTMLPurifier 4.4.0
|
00001 <?php 00002 00003 class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform 00004 { 00005 public $name = "SafeEmbed"; 00006 00007 public function transform($attr, $config, $context) { 00008 $attr['allowscriptaccess'] = 'never'; 00009 $attr['allownetworking'] = 'internal'; 00010 $attr['type'] = 'application/x-shockwave-flash'; 00011 return $attr; 00012 } 00013 } 00014 00015 // vim: et sw=4 sts=4