Parses HTML-style attributes from block opening tags.
Supports:
name="value" (quoted string)
name=value (unquoted single-token value)
name (boolean attribute, stored as "true")
Hyphenated names like data-paragraph or aria-label (composed
from TEXT - IDENTIFIER token sequences).
Attribute names are lowercased (Wikidot is case-insensitive).
The result is filtered through filterUnsafeAttributes to strip
potentially dangerous attributes (e.g. onload, onclick).
Parses HTML-style attributes from block opening tags.
Supports:
name="value"(quoted string)name=value(unquoted single-token value)name(boolean attribute, stored as"true")data-paragraphoraria-label(composed from TEXT-IDENTIFIER token sequences).Attribute names are lowercased (Wikidot is case-insensitive). The result is filtered through filterUnsafeAttributes to strip potentially dangerous attributes (e.g.
onload,onclick).Stops at BLOCK_CLOSE, NEWLINE, or EOF.