standard.lib.xml.htmlElementAllowedHere

htmlElementAllowedHere is available since version 1.0.

Prototype:

boolean htmlElementAllowedHere(number parent, string elt)

Parameters

parent
HTML parent element
elt
the HTML element

Description:

Checks whether an HTML element may be a direct child of a parent element.

Note - doesn't check for deprecated elements.

Return value:

Returns true if allowed, false if not.