Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (11 sloc) 0.55 kB
class String
def sanitize(options={})
ActionController::Base.helpers.sanitize(self, options)
end
def sanitize_standard()
self.gsub!(/<!--(.*?)-->[\n]?/m, "")
ActionController::Base.helpers.sanitize(self, :tags => %w(del, dd, h3, address, big, sub, tt, a, ul, h4, cite, dfn, h5, small, kbd, code,
b, ins, h6, sup, pre, strong, blockquote, acronym, dt, br, p, div, samp,
li, ol, var, em, h1, i, abbr, h2, span, hr), :attributes => %w(name, href, cite, class, title, src, height, datetime, alt, abbr, width))
end
end
Jump to Line
Something went wrong with that request. Please try again.