Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <div id="output"></div>
</body>
</html>
 
var t = "Here's some text\n\rHere's some more text" ;
var a = t.split(/[\n\t\r]+/) ;
var n = document.getElementById("output") ;
    for(var i = 0, p ; i < a.length ; i++) {
         p = document.createElement("p") ;
         if(!! window.ActiveXObject) p.innerText = a[i] ;
         else p.textContent = a[i] ;
         n.appendChild(p) ;
    }
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers