User:Bamyers99/sandbox/javascript

 var htmlText = WDiffString("line1\nline left\n", "line1\nline right\n"); document.write(htmlText);