We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44dd16c commit 4b19eacCopy full SHA for 4b19eac
src/SanitizerBuilder.php
@@ -14,7 +14,6 @@
14
use HtmlSanitizer\Extension\ExtensionInterface;
15
use HtmlSanitizer\Visitor\ScriptNodeVisitor;
16
use HtmlSanitizer\Visitor\StyleNodeVisitor;
17
-use HtmlSanitizer\Visitor\TextNodeVisitor;
18
19
/**
20
* @author Titouan Galopin <galopintitouan@gmail.com>
@@ -52,7 +51,6 @@ public function build(array $config): SanitizerInterface
52
51
// Always required visitors
53
$nodeVisitors['script'] = new ScriptNodeVisitor();
54
$nodeVisitors['style'] = new StyleNodeVisitor();
55
- $nodeVisitors['#text'] = new TextNodeVisitor();
56
57
return new Sanitizer(new DomVisitor($nodeVisitors), $config['max_input_length'] ?? 20000);
58
}
src/Visitor/TextNodeVisitor.php
0 commit comments