Last active
April 1, 2018 02:36
-
-
Save abalter/19bbf52efe13724736df1d64f5fd1ac4 to your computer and use it in GitHub Desktop.
Web Template created by abalter - https://repl.it/JCsR/75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Empty file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment