-
Notifications
You must be signed in to change notification settings - Fork 333
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
Add an option to escape forward slash character #405
Conversation
d04ebdf
to
318c353
Compare
@hsbt any chance this could be considered? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR. A few minor observations
If I'm not mistaken, the default for |
Thanks for the review. I'll update the PR soon. |
318c353
to
2e28828
Compare
@marcandre all done! |
93e14ad
to
b386f31
Compare
I just pushed another commit to address this. These were leftovers from #235 which made IMHO it would be preferable to enable it by default at some point, but I understand how it's better to be cautious. So let's keep it purely opt-in for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! LGTM
Documentation has been greatly improved; @casperisfine could you resolve the conflicts? |
Squashed commit of the following: commit 26d1810 Author: Francois Chagnon <[email protected]> Date: Tue Sep 15 21:17:34 2015 +0000 add config options for escape_slash commit fa28233 Author: Francois Chagnon <[email protected]> Date: Mon Feb 9 21:09:33 2015 +0000 add forward slash to escape character
b386f31
to
8a18cf6
Compare
Done. |
Thanks @casperisfine 👍 @hsbt thank you in advance for merging this |
Any news on this? |
@hsbt can this be merged? |
I have no opnion about this. @nurse Can you review this? |
As flori said in #235 (comment), he agreed this feature if it's configurable and disabled by default. And the policy sounds reasonable for me, the release manager of Ruby 2.8/3.0. Now this PR follows the comment and it's considered as acceptable. I merge this. |
Similar to ruby/json#405 It's a cheap way to make JSON safe to interpolate in a `<script>` tag.
Similar to ruby/json#405 It's a cheap way to make JSON safe to interpolate in a `<script>` tag.
Similar to ruby/json#405 It's a cheap way to make JSON safe to interpolate in a `<script>` tag. Co-authored-by: Jean Boussier <[email protected]>
This is a rebase of #235.