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

Support default_escape=>'none' #5

Merged
merged 3 commits into from Jun 25, 2013
Merged

Support default_escape=>'none' #5

merged 3 commits into from Jun 25, 2013

Conversation

markstos
Copy link

For symmetry with escape, default_escape should also support 'none' as a valid value.

It's useful in a system like ours, where we have 'default_escape=>"html" set, but then need to override that in another method to set it back to 'none'.

Mark Stosberg added 3 commits June 19, 2013 15:40
The docs and codes show that default_escape accepts only upper case
values, but this is in conflict that is made to the reference to
accepting the that values that "escape" accepts. escapes documents
accepting lower-case values instead.
This parallels what is accepted by 'escape'.

As we are transitioning to escape by default, we have one method that
sets a default of escape = none, and one that sets a default of escape = 'html'.

In our case, we need to override a a setting of default_escape='html'
with a default_escape='none', but this is currently not possible.
It refers to accepting the options that 'escape' does, but the escape
docs show lowercase values, while default_escape checks for uppercase
values. (Either should do).

Also, 'escape' documents 'none' as a valid option, but 'default_escape'
did not accept it.
mpeters added a commit that referenced this pull request Jun 25, 2013
Support default_escape=>'none'
@mpeters mpeters merged commit a8c3266 into mpeters:master Jun 25, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants