1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Mark html safety

This commit is contained in:
Jeremy Kemper 2009-10-09 18:36:58 -07:00
parent ed139730ff
commit 6395c7bed2

View file

@ -1,5 +1,5 @@
module ExampleHelper
def example_format(text)
"<em><strong><small>#{text}</small></strong></em>"
"<em><strong><small>#{h(text)}</small></strong></em>".html_safe!
end
end