Method: getHTML($name , [$tag])

Fetch value of file variable $name encoded for html output. If the original value is a plain text string, it will be returned HTML escaped and with newlines replaced with <br> tags. If value is not set or does not exist, the method will return null. If $tag is passed, and the original value is a plain text string, it will be wrapped in the $tag as follows <$tag>$response</$tag>

Arguments:

$name (STRING)
$tag (STRING) optional - defaults to false

Returns:

MIXED

Example:

$this->document->getHTML('document_title');
$this->document->getHTML('document_content');
$this->document->getHTML('document_shortdescription' , 'p');

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com