text=strip_tags(html)
can you just using oneline ruby code define the strip_tags methods?
def strip_tags(html)
//oneline here
end
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,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs