API ReferenceFunctions
tag()
@finopenpos/fiscal / tag
function tag(
name,
attrs?,
children?): string;Defined in: xml-utils.ts:51
Build an XML tag with optional attributes and children.
If children is a string, it is escaped. If children is an array of pre-built strings (e.g. nested tags), they are concatenated as-is.
Se children for string, será escapado. Se for array de strings pré-construídas (ex: tags aninhadas), serão concatenadas diretamente.
Parameters
| Parameter | Type | Description |
|---|
Returns
string