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 4f00786 commit 063e707Copy full SHA for 063e707
src/BBCode.php
@@ -12,10 +12,10 @@ final class BBCode
12
13
const CASE_SENSITIVE = 0;
14
15
- public function __construct()
+ public function __construct($htmlParsers = null, $bbCodeParsers = null)
16
{
17
- $this->htmlParser = new HTMLParser();
18
- $this->bbCodeParser = new BBCodeParser();
+ $this->htmlParser = new HTMLParser($htmlParsers);
+ $this->bbCodeParser = new BBCodeParser($bbCodeParsers);
19
}
20
21
public function only($only = null)
0 commit comments