Hey there,
I'm trying to set the height of the BBTextView to wrap the content, but cannot get it to work, since Stringutils.Measureheight doesn't work with this. Any Help?
And is there a way to keep it from crashing if in the text a unknown bbcommand occurs? As soon as a square bracket appears in the text, it tends to crash.
Thanks.
But that escapes the whole string. The thing is: I want to keep "useful" bb commands in the string, and get rid of the unwanted.
Example:
Rich (BB code):
The main <b>reason</b> I'm asking <i>this</i> is that [I'm] trying to <p>get rid of</p> only <h1>some</h1> [brackets] in the text.
This is the code in the json container I get from wikipedia, and it should end up to something like that, keeping the bold, italic, linefeed and heading commands.
Rich (BB code):
The main [b]reason[/b] I'm asking [font = italic]this[/font] is that [plain][[/plain]I'm[plain]][/plain] trying to
get rid of
only [textsize = 22]some[/textsize] [plain][[/plain]brackets[plain]][/plain] in the text.
to make it look something like this in the bbcodeview:
The main reason I'm asking this is that [I'm] trying to
get rid of
only some [brackets] in the text.