Module: Hamlit::Utils
- Defined in:
- lib/hamlit/utils.rb,
ext/hamlit/hamlit.c
Class Method Summary collapse
Class Method Details
.escape_html ⇒ Object
84 85 86 87 88 |
# File 'ext/hamlit/hamlit.c', line 84
static VALUE
rb_escape_html(RB_UNUSED_VAR(VALUE self), VALUE value)
{
return escape_html(to_s(value));
}
|
.escape_html_safe(html) ⇒ Object
6 7 8 |
# File 'lib/hamlit/utils.rb', line 6 def self.escape_html_safe(html) html.html_safe? ? html : escape_html(html) end |