Module: PatienceDiff::Html::Escaping
- Included in:
- HeaderHelper, HunkHelper
- Defined in:
- lib/patience_diff/html/escaping.rb
Instance Method Summary collapse
-
#escape(raw) ⇒ Object
Escapes text for HTML output.
Instance Method Details
#escape(raw) ⇒ Object
Escapes text for HTML output
7 8 9 |
# File 'lib/patience_diff/html/escaping.rb', line 7 def escape(raw) CGI::escape_html(raw.to_s) end |