remarkablemark/html-react-parser

Parser is breaking when we are provinding some content <content>

NehaDelta opened this issue · 2 comments

When I am proving some content between <> without space like <testing content> the parser is breaking & If I am providing < testing content > then it is working fine.

I am using with React 18.

@NehaDelta this is because the parser treats any content between <...> as a custom element. My recommendation is to escape the < and > as &lt; and &gt;.