If we pass null value to sanitize method, we have the following error :
TypeError : HtmlSanitizer\Bundle\Twig\TwigExtension::sanitize(): Argument #1 ($html) must be of type string, null given, called in ...
It should be okay to accept nullable value. In the sanitize() method, if null, just return null.
If we pass null value to sanitize method, we have the following error :
TypeError : HtmlSanitizer\Bundle\Twig\TwigExtension::sanitize(): Argument #1 ($html) must be of type string, null given, called in ...It should be okay to accept nullable value. In the sanitize() method, if null, just return null.