Remove the tags and replace them with newline characters ('\n') : Replace : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Replace »

 

Remove the tags and replace them with newline characters ('\n')


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:String = "This is<br>a sentence<br>on 3 lines";
        
        traceexample.split"<br>" ).join'n' ) );
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» Replace