Hi i have TextField in as3 in that i assigning the html value like
var TFhtmlText:String = <span class='Header'>The value need to be 25 percentage \n and percentage be 50 percent.</span>
txtField.htmlText = TFhtmlText;
from the above i need line break after 25 percentage for that i used <br/>
but i got unwanted spaces between line break, so that now i used 
; for linebreak this is working fine , so i need to replace this (
) character where \n
is present .. i tried with
TFhtmlText = TFhtmlText.split('\n').join('
')
txtField.htmlText = TFhtmlText;
TFhtmlText=TFhtmlText.replace(/\n/g, "
");
But not working ....how can i achieve it
thanks in advance