Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String text with less than greater than sign are treated as tags. (eg. 4<y<8) #1404

Closed
kuldeep21 opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
wontfix This will not be worked on

Comments

@kuldeep21
Copy link

kuldeep21 commented Apr 19, 2024

https://codesandbox.io/p/devbox/html-react-parser-demo-forked-cv8r3n?embed=1&file=%2Fpages%2Findex.js&showConsole=true

##Expected Behavior##

It should parse complete text 4<y<8

@kuldeep21 kuldeep21 added the bug Something isn't working label Apr 19, 2024
@remarkablemark
Copy link
Owner

remarkablemark commented Apr 19, 2024

@kuldeep21 This is expected behavior of html-dom-parser. Can you replace the tags with HTML entities? For example:

4&lt;y&lt;8

@remarkablemark remarkablemark added wontfix This will not be worked on and removed bug Something isn't working labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants