function

html2text . string . sncode

VERSIONlatest Convert html text to plain text.

HTML2TEXT(1e)

NAME

html2text - Converts html text to plain text

SYNOPSIS

html2text(str,allowable)

PARAMETERS

str
The input string. allowable One can use the optional second parameter to specify tags which should not be converted.

RETURN

Returns the converted string

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{html2text('$buf',"";\r

a
newline.

in:  res={_{html2text('$buf')}}.
out: res=paraòÒ ăаgraph
sednove [ http://test.com ]
is the best
a
newline.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>