Author Topic: Problem with HTML to text conversion (e.g. é)  (Read 3776 times)

Offline aweirig

  • Jr. Member
  • **
  • Posts: 14
Problem with HTML to text conversion (e.g. é)
« on: January 19, 2009, 09:30:13 AM »
Hello,

I have downloaded the official 0.2 release and there still a problems with HTML to text conversion. According to changeset 2070 a modification was done to html2text.php file to support "known HTML entities".

I have tested and é etc entities do not get coverted into text. After doing some testing I come to the conclusion that the corresponding line:
$text = html_entity_decode($text, ENT_COMPAT, 'UTF-8');
is positioned to late in the process.

After I moved the line right after:
$text = trim(stripslashes($this->html));

the conversion seems to work fine.

Kind regards,

Alex