mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 07:41:29 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
5
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php
Executable file → Normal file
5
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php
Executable file → Normal file
@@ -9,7 +9,10 @@ class HTMLPurifier_HTMLModule_Name extends HTMLPurifier_HTMLModule
|
||||
$elements = array('a', 'applet', 'form', 'frame', 'iframe', 'img', 'map');
|
||||
foreach ($elements as $name) {
|
||||
$element = $this->addBlankElement($name);
|
||||
$element->attr['name'] = 'ID';
|
||||
$element->attr['name'] = 'CDATA';
|
||||
if (!$config->get('HTML.Attr.Name.UseCDATA')) {
|
||||
$element->attr_transform_post['NameSync'] = new HTMLPurifier_AttrTransform_NameSync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user