Strip html tags
The regex below removes html tags from string (untested).
str = <<HTML_TEXTApplication error
Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html
HTML_TEXT puts str.gsub(/<\/?[^>]*>/, "")