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

Don't titlecase HTML entity character references #348

Open
ChrisJohnNewton opened this issue Sep 28, 2024 · 0 comments
Open

Don't titlecase HTML entity character references #348

ChrisJohnNewton opened this issue Sep 28, 2024 · 0 comments

Comments

@ChrisJohnNewton
Copy link

ChrisJohnNewton commented Sep 28, 2024

For example, I'm seeing & become &Amp;, which makes validation fail using my third-party HTML validator.

There is currently no workaround for this issue that I'm aware of because adding in & into the smallWords parameter doesn't work because line 85 in index.js expects an alphanumeric pattern. So you have to put amp instead of & into the smallWords set - which isn't ideal.

image

Great package by the way.

Thanks

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

1 participant