58 public function __construct(
string $htmlString, $parameters = [])
60 $this->htmlString = $htmlString;
62 if (isset($parameters[
'sanitize']) && is_bool($parameters[
'sanitize'])) {
63 $this->sanitize = $parameters[
'sanitize'];
65 if (isset($parameters[
'allowedTags']) && is_array($parameters[
'allowedTags'])) {
66 $this->allowedTags = $parameters[
'allowedTags'];