Method: YARD::Templates::Helpers::HtmlHelper#html_markup_text
- Defined in:
- lib/yard/templates/helpers/html_helper.rb
#html_markup_text(text) ⇒ String
Converts plaintext to regular HTML
109 110 111 |
# File 'lib/yard/templates/helpers/html_helper.rb', line 109 def html_markup_text(text) h(text).gsub(/\r?\n/, '<br/>') end |