Does anyone know of a way to get the plain-text of a TextBox that has markup text applied? For instance, in the below example I'd like to get the text "This is bold text. This is italic text. This is underlined text. This is bold, italic, underlined text." from the box (without the markup directives).
I have a system that creates logs at the bottom of some apps that supports markup (for bold and red font mostly), but I'd like to be able to save the log to a file occasionally and not have it have the markup directives.
Thanks!
Names Default To Here( 1 );
win = New Window( "Example", fontobj = text = Text Box( "Example Text" ) );
text << setText(
"This is <b>bold</b> text. This is <i>italic</i> text. This is <u>underlined</u> text. This is <b><i><u>bold, italic, underlined</u></i></b> text."
);
text << markup;
Jordan