Parses HTML-style attributes from block opening tags.
Supports quoted values, single-token unquoted values, boolean attributes, and hyphenated names like data-paragraph or aria-label.
data-paragraph
aria-label
Attribute names are lowercased. The result is filtered through filterUnsafeAttributes to strip potentially dangerous HTML attributes.
filterUnsafeAttributes
Parses HTML-style attributes from block opening tags.
Supports quoted values, single-token unquoted values, boolean attributes, and hyphenated names like
data-paragraphoraria-label.Attribute names are lowercased. The result is filtered through
filterUnsafeAttributesto strip potentially dangerous HTML attributes.