The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Wednesday, January 6, 2010

Ruby Regex to remove script tags

# remove all script tags
html_content = html_content.gsub(/<script.*?>[\s\S]*<\/script>/i, "")

Resources

No comments: