Created
October 17, 2015 01:08
-
-
Save ygamretuta/4c8eda86e0df4fa904a1 to your computer and use it in GitHub Desktop.
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
<!-- Rails automatically strips tags when outputting strings with html on them --> | |
<%= '<div>You are not alone</div>' %> | |
<!-- However, you may want to escape the HTML so that you can display the tags in the output --> | |
<%= h '<div>This will display with escaped html tags</div>' %> | |
<!-- There are some instances where you would want text with tags to be actually rendered --> | |
<%= raw '<div>I will be a div</div><br /><span>I will be under div</div>' %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment