module SuperString
refine Object do
def ii
puts "ii"
end
end
end
using SuperString
5.ii
"r".ii
ii
The result is marked as HTML-safe, but it is escaped by default, unless :escape is false. Care should be taken if text contains HTML tags or entities, because truncation may produce invalid HTML (such as unbalanced or incomplete tags).