I'm trying to set the text of a Text开发者_JAVA百科Area with some text containing forbidden characters. I'm trying to set the text as <meta charset="utf-8">
and there is of course a problem with the "'s. I think it's something like this <meta charset="utf-8">
, but obviously this doesn't work.
Not quite sure if you mean you are having trouble with setting text to a textarea when the text contains single quote character. You need to escape the quote or you could enclose the string in double quotes.
Take a look at http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_03.html#445094
精彩评论