diff --git a/src/lib/html-formatter.js b/src/lib/html-formatter.js
index 9254e02..7144d11 100644
--- a/src/lib/html-formatter.js
+++ b/src/lib/html-formatter.js
@@ -54,7 +54,25 @@ const minify = function(el) {
const convert = {
comment: [],
- line: []
+ line: [],
+ script: []
+};
+
+const preserveScripts = function (el) {
+ convert.script = [];
+ el = el.replace(/(