Method Parser.HTML()->context()

Method context

string context()


Returns the current output context as a string.


In top level data. This is always returned when called from tag or container callbacks.


In an unquoted argument.


In a splice argument.

The return value can also be a single character string, in which case the context is a quoted argument. The string contains the starting quote character.

This function is typically only useful in entity callbacks, which can be called both from text and argument values of different sorts.

See also