Skip to content

Commit 4b19eac

Browse files
committed
Remove TextVisitor class
1 parent 44dd16c commit 4b19eac

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

src/SanitizerBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use HtmlSanitizer\Extension\ExtensionInterface;
1515
use HtmlSanitizer\Visitor\ScriptNodeVisitor;
1616
use HtmlSanitizer\Visitor\StyleNodeVisitor;
17-
use HtmlSanitizer\Visitor\TextNodeVisitor;
1817

1918
/**
2019
* @author Titouan Galopin <galopintitouan@gmail.com>
@@ -52,7 +51,6 @@ public function build(array $config): SanitizerInterface
5251
// Always required visitors
5352
$nodeVisitors['script'] = new ScriptNodeVisitor();
5453
$nodeVisitors['style'] = new StyleNodeVisitor();
55-
$nodeVisitors['#text'] = new TextNodeVisitor();
5654

5755
return new Sanitizer(new DomVisitor($nodeVisitors), $config['max_input_length'] ?? 20000);
5856
}

src/Visitor/TextNodeVisitor.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)