-
Notifications
You must be signed in to change notification settings - Fork 29
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
Option to exlude some characters from being decoded #18
Comments
My current workaround is:
And then do |
That sounds like a really nice feature. Do you have any ideas about what the interface might ideally look like? |
Not really, but probably something really simple like |
👍 That's the only missing thing in this library. |
+1 |
2 similar comments
+1 |
+1 |
How about a parameter to only decode "safe" codepoints? The string = "<élan>"
coder.encode(string) # => "<élan>" The string = "<élan>"
coder.decode(string, :safe) # => "<élan>" |
It'd be great if one could specify that some characters should be excluded from decoding. For example when trying to sanitize/normalize HTML, < and > are good examples to be excluded.
The text was updated successfully, but these errors were encountered: