I am inserting the user input into a DB using PHP.
Can I replace the special characters in the input into HTML characters like: & = & ; ' =, &apos ;
I only want the special characters to been replaced.
The user has to chose to format the design of his profile so the text-editor puts millions of div's with id´s inside my table this way they would get converted into a "safe" strings
< div id='test'> my name is john< /div>
Should output:
< ; div id &equals ;&apos ;test &apos ; > ;my name is john < ;&sol ;div > ;