Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 wrong variable assignation

open
nobody
5
2006-07-06
2006-07-06
Anonymous
No

http://php-html.sourceforge.net/html2text.php

Seems to have an error on the page:

In the example given:
include ("html2text.inc");

$htmlText = "... HTML text here ...";
$asciiText = new Html2Text ($htmlText, 15); // 15
columns maximum
$text = $htmlToText->convert();
echo "Converted to: " . $text;

The 4th line $text = $htmlToText->convert();
should read
$text = $asciiText->convert();

Discussion