Library
Class

Library\Converter\Html2Text

class Html2Text extends AbstractConverter

HTML to plain text converter

Freely (but mostly) inspired by the work of Jon Abernathy jon@chuggnutt.com and his "class.html2text.inc" (see http://www.chuggnutt.com/html2text).

Properties

static $correspondances
$allowed_tags
$line_width

Methods

static mixed convert(mixed $content, $allowed_tags = null, $line_width = null)

Process a content conversion

setAllowedTags($tags)

setLineWidth($line_width)

Details

at line 96
static public mixed convert(mixed $content, $allowed_tags = null, $line_width = null)

Process a content conversion

Parameters

mixed $content
$allowed_tags
$line_width

Return Value

mixed

at line 86
public setAllowedTags($tags)

Parameters

$tags

at line 91
public setLineWidth($line_width)

Parameters

$line_width