lib/sdoc/helpers.rb in sdoc-1.0.0.rc3 vs lib/sdoc/helpers.rb in sdoc-1.0.0

- old
+ new

@@ -19,10 +19,10 @@ # # Example: # # strip_tags("<strong>Hello world</strong>") => "Hello world" def strip_tags(text) - text.gsub(/\<\/?[a-zA-Z\s"\.\/\=]+\>/, "") + text.gsub(%r{</?[^>]+?>}, "") end # Truncates a given string. It tries to take whole sentences to have # a meaningful description for SEO tags. #