Skip to content

Allow null value #26

Description

@bastien70

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions