1
0
Fork 0
forked from blallo/rss-bridge

Changed the antiselector to be less likely to happen.

This commit is contained in:
Teromene 2016-02-26 18:31:53 +00:00
parent 036ea43e4f
commit 1c1bcc20ff

View file

@ -175,7 +175,7 @@ class HTMLSanitizer {
$htmlContent = str_get_html($textToSanitize); $htmlContent = str_get_html($textToSanitize);
foreach($htmlContent->find('*[!vive_les_chapeaux]') as $element) { foreach($htmlContent->find('*[!b38fd2b1fe7f4747d6b1c1254ccd055e]') as $element) {
if(in_array($element->tag, $this->onlyKeepText)) { if(in_array($element->tag, $this->onlyKeepText)) {
$element->outertext = $element->plaintext; $element->outertext = $element->plaintext;
} else if(in_array($element->tag, $this->tagsToRemove)) { } else if(in_array($element->tag, $this->tagsToRemove)) {