Method: Tiny::Buffering#append!
- Defined in:
- lib/tiny.rb
#append!(content) ⇒ SafeString Also known as: text!
Appends non HTML-escaped text to the content.
html_tag(:p) do
append! 'Foo & Bar'
append! '<evil>'
end
# => <p>
Foo & Bar
<evil>
</p>
Shortcut for
append raw(content)
208 209 210 |
# File 'lib/tiny.rb', line 208 def append!(content) append raw(content) end |