javascript - My webpage display ' and not ' -


i have php script return json, , js function parse json. in php did htmlspecialchars when display value in webpage ' isn't replace ' same " idea ?

if seeing ' on page, have double-encoded string somewhere along lines.

encoding string first time changes ' '.

encoding string second time changes ' '.

the result of see code, not char - web page converts & & visually, , ignores rest.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -