For a wordpress page to be validated, all &
should be replaced with &
I know java but i do not know PHP. So how do i do this in wordpress?
Leave a Reply
You must be logged in to post a comment.
For a wordpress page to be validated, all &
should be replaced with &
I know java but i do not know PHP. So how do i do this in wordpress?
You must be logged in to post a comment.
Use
htmlspecialchars
before printing:You can escape ampersands
&
as well as quotes and brackets using thehtmlspecialchars()
function.Like the others said,
htmlspecialchars()
works. Also check outhtmlentities()
which has a broader range of characters to replace for further scrubbing of the string.