mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 22:57:26 +02:00
Changed the antiselector to be less likely to happen.
This commit is contained in:
@@ -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)) {
|
||||||
|
Reference in New Issue
Block a user