Skip to content

<br> vs <br /> #85

@ghost

Description

Hi all

I am trying to sanitize a wysiwyg editor and noticed that the sanitizer uses the XHTML <br /> tag. My front end sends the HTML <br> tag and can't get it to pass validation. I am using the following policy:

HtmlPolicyBuilder().allowCommonInlineFormattingElements().toFactory()

Am i missing something or I have to convert the <br> tag to <br /> before passing validation?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions