html - Is it possible to escape & ' present in database? -
the data retrieved database has &
or '
. how escape , show &
or '
without using gsub method?
if can't stop data being inserted that, there code here create function in mysql can use in query in order return decoded data.
or within ruby, not using replace strategy, take @ how-do-i-encode-decode-html-entities-in-ruby.
Comments
Post a Comment