CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var array = [
"is <b>a test</b>",
"of the <div style=\"color:red\">battle</div> system"
]

var cElem = document.createElement("span");

var cleanArray = array.map(function(elem){
   cElem.innerHTML =  elem;
   return cElem.textContent;
}
                           
document.write(cleanArray);
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................