Skip to content

What is the correct way to HTML Symbols? #149

Closed
@codingedgar

Description

@codingedgar

Thank you so much for this library, and sorry for bothering, I don't seem to find a way to do this

<p>I will display &larr;</p>
<p>I will display &#8592;</p>
<p>I will display &#x2190;</p>

when I use DOM.text "&#8592;" it gets sanitized as &amp#8592;, for react it would be something like:

<p>I will display {&#x2190;}</p>

but I also don't know how to do {}

Tried with DOM.unsafeCreateDOMComponent "&#8593;" >>= React.element but it needs an actual component like p and I just want to write "&#8593;" escaped.

What is the correct way to do it?

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