Template::getRawTemplate - jcobban/Genealogy GitHub Wiki

$template->getRawTemplate()

Up: class Template

This diagnostic tool returns a string containing the template after all of the files identified by calls to $template->includeSub have been inserted into the base template, except those that specified to include after substitution, but before the text substitutions defined by calls to TemplateTag::update or Template::set have been applied. Note that if you wish to display the string you will need to replace all less than signs "<" with the HTML/XML entity "&lt;" the greater than signs ">" with "&gt;" as well as some other replacements or else they will be interpreted as HTML. Use the PHP function htmlspecialchars to perform this.

print htmlspecialchars($template->getRawTemplate());

Do not call this until after the last call to $template->includeSub.

Next: $template->getElementById()