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

···

--
Posted via http://www.ruby-forum.com/.

Would that be good enough ?

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

Cheers,

···

2009/11/20 Haoqi Haoqi <axgle@126.com>:

text=strip_tags(html)

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

--
JJ Fleck
PCSI1 Lycée Kléber