Closed
Description
We need to strip all native tags when parsing the text, or else it will calculate the wrong number of characters to print and results in an ArgumentException.
Repro:
- Add a <style> tag to text
- Print it
- Observe ArgumentException
To fix, we either need to add all missing "Unity" tags to the parser, or calculate characters to print based on the visible text. For now the easiest fix is to include all missing tags. Ex:
style
link
Another issue that could come up is you can use color like "<#FFFFFF>" instead of <color=#FFFF>. If that results in this same issue, we may want to look at solution that examines the visible text.