Created
February 25, 2011 23:42
-
-
Save rossta/844730 to your computer and use it in GitHub Desktop.
Enable automatic html-escaping locally rather than by default.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% autoescape do %> | |
<div> | |
<%= content_helper_gets_escaped %> | |
</div> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= content_helper_not_escaped %> | |
<% autoescape do %> | |
<div> | |
<%= content_helper_gets_escaped %> | |
</div> | |
<% autoescape do %> | |
<div> | |
<%= content_helper_gets_escaped %> | |
</div> | |
<% end %> | |
<% end %> | |
<%= content_helper_not_escaped %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% autoescape do %> | |
<div> | |
<%= content_helper_gets_escaped %> | |
</div> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% autoescape do %> | |
<div> | |
<%= content_helper_gets_escaped %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment