RTLabel
RTLabel copied to clipboard
try/catch block doesn't prevent bad HTML syntax
I wrap the only setText
call in a standard @try/@catch
block but it does not prevent the app from crashing because of bad HTML syntax. I can't prevent this, because data is coming from user.
In this case I have #FFFFF
as the color code (missing one character).
How should i wrap the call so that it raises exception normally?