2013-04-30, 01:19:36
I assume this is because get_page_content()
does a $content = strip_decode($content);
which is stripslashes(htmlspecialchars_decode($text, ENT_QUOTES));
good catch, I think that should do it, we should add a strip_encode function to core.
It depends on where your new content is coming from of course as to whether it is required.
If you are grabbing page contents then that is where you should be using strip_decode
does a $content = strip_decode($content);
which is stripslashes(htmlspecialchars_decode($text, ENT_QUOTES));
good catch, I think that should do it, we should add a strip_encode function to core.
It depends on where your new content is coming from of course as to whether it is required.
If you are grabbing page contents then that is where you should be using strip_decode