mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 01:25:57 +00:00
strip_tags_long: use htmlpurifier to properly reformat html content
This commit is contained in:
18
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php
Executable file
18
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class HTMLPurifier_HTMLModule_Name extends HTMLPurifier_HTMLModule
|
||||
{
|
||||
|
||||
public $name = 'Name';
|
||||
|
||||
public function setup($config) {
|
||||
$elements = array('a', 'applet', 'form', 'frame', 'iframe', 'img', 'map');
|
||||
foreach ($elements as $name) {
|
||||
$element = $this->addBlankElement($name);
|
||||
$element->attr['name'] = 'ID';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
Reference in New Issue
Block a user