Closed devajmeireles closed 1 year ago
Thanks! It would be nice if this supported the rest of the syntax, like foreground colors and other text formatting like bold, italic, etc.
I wonder whether Symfony has any methods we can call to strip the text (e.g. for the non-ANSI output version) or whether we can look at how they're processing the text.
I've just updated the regex to handle more Symfony formatting tags (like bold, underscores, etc.) as well as handling tags with multiple options (e.g. <fg=blue;bg=red>
and <options=bold,underscore></>
).
Fixes: #45
Output: