pere.noel
3/26/2006 2:33:00 PM
i have a regexp able to strip html :
/<[^>]*>/
however, between <script and </script> all the "text is preserved, tjen
i've tried :
def stripHTML
# self.gsub(/<\S[^><]*>/, '')
self.gsub(/\A.*<body [^>]*>(.*)<\/body>\s*\Z/, '\1').gsub(/<[^>]*>/,
'')
end
without success : the various javascript functions are kept ?
what's my error here ?
--
une bévue