Oneline:strip_tags

text=strip_tags(html)

can you just using oneline ruby code define the strip_tags methods?
def strip_tags(html)
//oneline here
end

2009/11/20 Haoqi H. [email protected]:

text=strip_tags(html)

can you just using oneline ruby code define the strip_tags methods?

Would that be good enough ?

def strip_tags(html)
return html.gsub(/<.*?>/)
end

Cheers,