Converts plain text to HTML
| package |
Framework |
|---|---|
| subpackage |
Utils |
__construct(string $source = '', boolean $from_file = false, array $config = array())
If the plain text source string (or file) is supplied, the class will instantiate with that source propagated, all that has to be done it to call get_html().
stringPlain text
booleanIndicates $source is a file to pull content from
arrayClass configuration
_convert()
_convert_line( $text, $is_flowed)
_converter( $text)
get_html() : string
stringHTML content
print_html()
set_text(string $source, boolean $from_file = false)
stringPlain text
booleanIndicates $source is a file to pull content from
html : string
| var |
|---|
string
text : string
| var |
|---|
string
config : array
| var |
|---|
array