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().
string
Plain text
boolean
Indicates $source is a file to pull content from
array
Class configuration
set_text(string $source, boolean $from_file = false)
string
Plain text
boolean
Indicates $source is a file to pull content from
get_html() : string
string
HTML content
print_html()
_convert()
_converter($text)
_convert_line($text, $is_flowed)
html : string
var | |
---|---|
string
text : string
var | |
---|---|
string
config : array
var | |
---|---|
array