2010-02-11, 17:40:41
Hi,
I'm using polish diacritical characters and site still contain HTML entities. Browsers convert characters on the fly, but Google maybe not.
I solved this problem:
This problem is also in other variables such as title, meta description etc.
I'm using polish diacritical characters and site still contain HTML entities. Browsers convert characters on the fly, but Google maybe not.
I solved this problem:
Code:
admin/inc/theme_functions.php
Code:
function get_page_content() {
global $content;
exec_action('content-top');
// echo stripslashes(htmlspecialchars_decode($content, ENT_QUOTES)); <-- do not decode, but I don't know why
echo stripslashes(html_entity_decode($content, ENT_QUOTES, 'UTF-8')); // <-- work
exec_action('content-bottom');
}
This problem is also in other variables such as title, meta description etc.