pixi-jsFunctions
Function: parseTaggedText()
> parseTaggedText(text, style): TextStyleRun[]
Defined in: node_modules/pixi.js/lib/scene/text/canvas/utils/parseTaggedText.d.ts:38
Internal
Parses text with tag markup into an array of styled runs.
Supports simple open/close tags like <red>text</red>.
Nested tags are supported via a stack - inner tags inherit from outer tags.
Unknown tags (not in tagStyles) are treated as literal text.
Parameters
text
string
The text to parse
style
The base TextStyle containing tagStyles
Returns
Array of TextStyleRun objects