Browse Source

Merge pull request #3049 from yar3333/TestRunner_print_fix

Prevent <br> from htmlEscape
Simon Krajewski 11 years ago
parent
commit
841a572d3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/unit/TestRunner.hx

+ 2 - 2
std/haxe/unit/TestRunner.hx

@@ -68,8 +68,8 @@ class TestRunner {
 			var d;
             if( __js__("typeof")(document) != "undefined"
                     && (d = document.getElementById("haxe:trace")) != null ) {
-                msg = msg.split("\n").join("<br/>");
-                d.innerHTML += StringTools.htmlEscape(msg)+"<br/>";
+                msg = StringTools.htmlEscape(msg).split("\n").join("<br/>");
+                d.innerHTML += msg+"<br/>";
             }
 			else if (  __js__("typeof process") != "undefined"
 					&& __js__("process").stdout != null