3 Replies Latest reply on Sep 17, 2008 10:15 PM by kglad

    Convert HTML text to normal text

      Basically I want to convert some html formatted text to normal text. I've got a html page being loaded into my swf but then I want to copy it to the user's clipboard, but as it is on screen without all of the html tags (<BR>, character escaping, etc). Previously i did it like this:

      tempText.html = true;
      tempText.htmlText = "<BR><B>hellow world</B><BR>";
      copyText = tempText.text;

      returns "undefined"

      this code used to work but doesn't anymore :( I kind of want to refrain from using copy and replace string functions to get rid of the html formating because thats a bit unreliable given how i'm going to use this. So does anyone have any ideas? :D