Posted By

endorfin on 08/08/09


Tagged

rubyonrails


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

batamire


Strip HTML Tags


 / Published in: Ruby
 

  1. string = "<b>Bob</b>"
  2. string = string.gsub(/<\/?[^>]*>/, "")

Report this snippet  

You need to login to post a comment.