mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 16:51:28 +00:00
strip_tags_long: use htmlpurifier to properly reformat html content
This commit is contained in:
15
lib/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php
Executable file
15
lib/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Validates arbitrary text according to the HTML spec.
|
||||
*/
|
||||
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
|
||||
{
|
||||
|
||||
public function validate($string, $config, $context) {
|
||||
return $this->parseCDATA($string);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
Reference in New Issue
Block a user