Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1c83fd2eff
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.354 kB
module ActionView #:nodoc:
class SafeBuffer < String
def <<(value)
if value.html_safe?
super(value)
else
super(ERB::Util.h(value))
end
end
def concat(value)
self << value
end
def html_safe?
true
end
def html_safe!
self
end
def to_s
self
end
end
end
Jump to Line
Something went wrong with that request. Please try again.