TemplateTag::innerHTML - jcobban/Genealogy GitHub Wiki

$tag->innerHTML()

Up: class TemplateTag

Returns a string containing only the text between the opening and closing tags. Note the capitalization of the method name which matches the equivalent attribute in JavaScript. It can be accessed either as a function or as if it was an attribute to match the behaviour in JavaScript.

    $inner          = $tag->innerHTML();        // the contents within the opening and closing tags
    $inner          = $tag->innerHTML;          // equivalent
    $tag->innerHTML("<b>something else</b>)";   // replaces the contents
    $tag->innerHTML = "<b>something else</b>";  // equivalent

Next: $tag->replace($match,$replace)