Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Parser
Parser.HTML

Method Parser.HTML()->context()


Method context

string context()

Description

Returns the current output context as a string:

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

  • "arg": In an unquoted argument.

  • A single character string: In a quoted argument. The string contains the starting quote character.

  • "splice_arg": In a splice argument.

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

See also

splice_arg