Menu

#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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.