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:
parent
ed139730ff
commit
6395c7bed2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue