I want to make a linkebreak in a String. In HTML it's like this (if I replace the T with a linkebreak):
mystring.replace("T", "<br>");
But this doesn't work in JavaScript. The <br> is part of the String too. How do I implement this in JavaScript? Thanks!
mystring BEFORE linkebreak:
2013-10-22T22:56:25.534Z
mystring AFTER linebreak:
2013-10-22T
22:56:25.534Z
console.log? In analert? In the DOM itself? In a text file?Talso why are you replacing it?