diff --git a/application/source/template/prepare.go b/application/source/template/prepare.go
index a887056f3644d273fc140b05dcda287aec400988..a1424ad7bd7e5b75e247432d4be38828a997f253 100644
--- a/application/source/template/prepare.go
+++ b/application/source/template/prepare.go
@@ -232,6 +232,15 @@ func prepareTextNodes(node *html.Node, storage *types.PageData) {
 }
 
 func runNodes(n *html.Node, storage *types.PageData) {
+
+	if n.Parent != nil {
+		if n.Parent.Type == html.ElementNode {
+			if n.Parent.Data == "script" || n.Parent.Data == "style" {
+				return
+			}
+		}
+	}
+
 	if n.Type == html.TextNode {
 
 		content := strings.TrimSpace(n.Data)