class TBBC
def parse(s)
#First off remove the < and > which will disable all HTML
s=s.gsub("<","<").gsub(">",">")
#Convert new lines to
's
s=s.gsub(/\n/,'
')
#Tags
s=s.gsub(/\[b\](.*?)\[\/b\]/,'\1')
return s
end
end
class String
def tbbc
bbc=TBBC.new
bbc.parse(self)
end
end