1
1
Fork 0
friendica_2019-12_sharedHos.../library/HTMLPurifier/AttrTransform/SafeObject.php

17 lines
389 B
PHP
Raw Normal View History

2010-09-09 05:14:17 +02:00
<?php
/**
* Writes default type for all objects. Currently only supports flash.
*/
class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
{
public $name = "SafeObject";
function transform($attr, $config, $context) {
if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
return $attr;
}
}
// vim: et sw=4 sts=4