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

If string contains "<" greater sign then the next string from the greater then sign is getting excluded #440

Closed
ranjit-redekar opened this issue Apr 20, 2023 · 1 comment

Comments

@ranjit-redekar
Copy link

Consider the below example,
INPUT - the value of the old purchase is < the new purchase
OUTPUT- the value of the old purchase is

"< the new purchase " this part is getting excluded from the actual string.

linkifyjs - 4.1.1
linkify-html - 4.1.1

Codesandbox link - https://codesandbox.io/s/linkify-html-example-ud7n80

@ranjit-redekar ranjit-redekar changed the title If string contains "<" greatter sign then henceforth string is getting excluded If string contains "<" greater sign then the next string from the greater then sign is getting excluded Apr 20, 2023
@nfrasser
Copy link
Owner

Hi @ranjit-redekar, linkify-html does not support text with unencoded HTML entities such as < (should be encoded as &lt;. Try linkify-string instead https://linkify.js.org/docs/linkify-string.html

@nfrasser nfrasser closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants