Use htmlentities with editor
Use htmlentities with editor
srusha
Posts: 5Questions: 2Answers: 0
Hi,
For reasons, I need all editor input to go through htmlentities($string,ENT_QUOTES,'UTF-8');
I know I can do it manually and edit each and every one of my fields set function callbacks but this means 100+ fields to go through. is there a way to automatically convert ALL data that is going to the SQL using htmlentities? so that instead of " in the database I will have &qoute;?
This discussion has been closed.
Answers
Nothing?
Two options:
data
and encode each value there before passing it on to Editor.Remember to be careful of double encoding when submitting the encoded data again .
Allan