Changed the antiselector to be less likely to happen.
This commit is contained in:
parent
036ea43e4f
commit
1c1bcc20ff
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue