# File lib/stringex/string_extensions.rb, line 143
143:       def to_html(lite_mode = false)
144:         if defined?(RedCloth)
145:           if lite_mode
146:             RedCloth.new(self, [:lite_mode]).to_html
147:           else
148:             if self =~ /<pre>/
149:               RedCloth.new(self).to_html.tr("\t", "")
150:             else
151:               RedCloth.new(self).to_html.tr("\t", "").gsub(/\n\n/, "")
152:             end
153:           end
154:         else
155:           warn "String#to_html was called without RedCloth being successfully required"
156:           self
157:         end
158:       end