Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML entities don't convert back
#1
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:

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.
Reply


Messages In This Thread
HTML entities don't convert back - by SMYS - 2010-02-11, 17:40:41
HTML entities don't convert back - by ccagle8 - 2010-02-11, 21:15:19
HTML entities don't convert back - by SMYS - 2010-02-12, 01:28:47



Users browsing this thread: 1 Guest(s)