Class: Bijou::EncodeHTML

Inherits:
Filter
  • Object
show all
Defined in:
lib/bijou/filters.rb

Overview

The h filter escapes the input for HTML presentation.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply(input) ⇒ Object



48
49
50
# File 'lib/bijou/filters.rb', line 48

def self.apply(input)
  ::CGI::escapeHTML(input)
end

Instance Method Details

#render(input) ⇒ Object



44
45
46
# File 'lib/bijou/filters.rb', line 44

def render(input)
  "Bijou::EncodeHTML.apply(#{input})"
end