Strip HTML Tags

Remove all HTML tags from a string.

Code

General
str.gsub(/<[^>]*>/, '')

Parameters

The string containing HTML tags to remove

Server

More Ruby Snippets