1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-27 01:31:29 +00:00

update HTMLPurifier; enable embedded flash video in articles

This commit is contained in:
Andrew Dolgov
2011-04-11 16:41:01 +04:00
parent ad92c6ac62
commit f4f0f80d21
341 changed files with 2014 additions and 643 deletions

View File

0
lib/htmlpurifier/library/HTMLPurifier/Token/Empty.php Executable file → Normal file
View File

0
lib/htmlpurifier/library/HTMLPurifier/Token/End.php Executable file → Normal file
View File

0
lib/htmlpurifier/library/HTMLPurifier/Token/Start.php Executable file → Normal file
View File

3
lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php Executable file → Normal file
View File

@@ -33,7 +33,7 @@ class HTMLPurifier_Token_Tag extends HTMLPurifier_Token
* @param $name String name.
* @param $attr Associative array of attributes.
*/
public function __construct($name, $attr = array(), $line = null, $col = null) {
public function __construct($name, $attr = array(), $line = null, $col = null, $armor = array()) {
$this->name = ctype_lower($name) ? $name : strtolower($name);
foreach ($attr as $key => $value) {
// normalization only necessary when key is not lowercase
@@ -50,6 +50,7 @@ class HTMLPurifier_Token_Tag extends HTMLPurifier_Token
$this->attr = $attr;
$this->line = $line;
$this->col = $col;
$this->armor = $armor;
}
}

0
lib/htmlpurifier/library/HTMLPurifier/Token/Text.php Executable file → Normal file
View File