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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -