What I have:
#text file:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<script id="polyfill-script-bundle">
</script>
What I want:
file = ['<!DOCTYPE html>\n', '<html lang="en" dir="ltr">\n', '<head>\n', '<meta http-equiv="content-type" content="text/html;charset=UTF-8">\n', '<script id="polyfill-script-bundle">\n', '</script>']
I plan to do this for an entire HTML text file, what is the best way to go about this?