]> git.wh0rd.org - tt-rss.git/blob - lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php
strip_tags_long: use htmlpurifier to properly reformat html content
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / AttrTransform / SafeObject.php
1 <?php
2
3 /**
4 * Writes default type for all objects. Currently only supports flash.
5 */
6 class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
7 {
8 public $name = "SafeObject";
9
10 function transform($attr, $config, $context) {
11 if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
12 return $attr;
13 }
14 }
15
16 // vim: et sw=4 sts=4