Web Template created by abalter - https://repl.it/JCsR/75
Empty file
let str = ""
+ "<div id='text'>"
+ "This is a bunch of test that I'm wanting to "
+ "capture\\n\
new line \\n\
\\n\
\\n\
two new lines"
+ " and how tabs render"
+ "</div>"
let text = $.parseHTML(str);
console.log($(text).text());
$('body').append($('<p>').text($(text).text()));
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ariel Balter</title>
<meta name="author" content="name">
<meta name="description" content="description here">
<meta name="keywords" content="keywords,here">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Bitter|Lato|Open+Sans|Open+Sans+Condensed:300|Roboto|Roboto+Condensed" rel="stylesheet">
<!-- Custom Styles -->
<link rel="stylesheet" href="css/style.css" type="text/css">
<!-- BOOTSTRAP -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- JQUERY -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<!-- Custom Script (defered load, after dom ready) -->
<script src="js/script.js" defer></script>
</body>
</html>