-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unicode leftovers from convertBooleans() #84
Comments
Thanks for reporting. The first solution sounds simple, can you please make a pull request? |
I'll do a pull request. I'm not sure if removing html5 data-* attributes is expected when they are false/true thou. |
You're right, I think we should not touch the data attributes. |
I'll try the second solution. it is not this hard either and should not break anything. |
sticked with the first solution, now
and
work the same way |
Yes, makes absolutely sense to keep it consistent. |
the replace regex from the method convertBooleans() (
\s(\w+)='\u0093true'
) only finds attributes without dashes in it, so "test='true'" works, but "data-test='true'" does not. marked true/false don't get replaced and confuse some programmers because of the invisible unicode signs.Possible Solution:
Replace regex so it accepts word characters and dashes:
other possible solution:
strip all
\u0093
before outputing themThe text was updated successfully, but these errors were encountered: