From 1c1bcc20ffb1623fc426b3ad7199155647a5f350 Mon Sep 17 00:00:00 2001 From: Teromene Date: Fri, 26 Feb 2016 18:31:53 +0000 Subject: [PATCH] Changed the antiselector to be less likely to happen. --- lib/HTMLUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index cb1bc0b..1e2f0f7 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -175,7 +175,7 @@ class HTMLSanitizer { $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)) { $element->outertext = $element->plaintext; } else if(in_array($element->tag, $this->tagsToRemove)) {