class String
def constantize
Object.const_get('::'+self)
end
# simple markdown
def as_html
self.gsub($/, '
')
end
# convert escaped strings, remove scritpts
def to_html opts={}
value = self.gsub(/</, '<').gsub(/>/, '>').gsub(/&/,'&')
value = value.gsub(/