This file contains hidden or 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
String output from html helpers like link_to are html_safe. | |
In the console: | |
lnk = helper.link_to('home', '/') | |
=> "<a href=\"/\">home</a>" | |
lnk.html_safe? | |
=> true | |
However, if you have html-ish stuff in the text arguments to the helper, | |
it must be html_safe blessed: |