diff --git a/LICENSE b/LICENSE
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright Vladimir Shabanov 2011-2012.
+Copyright Vladimir Shabanov 2011-2017.
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff --git a/Text/HTML/TagSoup/Fast.hs b/Text/HTML/TagSoup/Fast.hs
--- a/Text/HTML/TagSoup/Fast.hs
+++ b/Text/HTML/TagSoup/Fast.hs
@@ -104,6 +104,10 @@
                              reverse a)
 --          fixTag (TagText t) = TagText (unescapeHtml t)
           fixTag t = t
+          -- https://dev.w3.org/html5/spec-preview/tokenization.html#tokenizing-character-references
+          -- TODO: more correct character reference tokenization
+          -- there are additional rules for attributes too.
+
           -- The right way is here
           -- http://www.w3.org/TR/html5/tokenization.html
           -- https://dev.w3.org/html5/spec-preview/tokenization.html
@@ -490,12 +494,16 @@
           go acc (TagOpen "br" _ : TagClose "br" : ts) =
               go ("<br/>" : acc) ts
           go acc (TagOpen t as : ts) =
-              go (">" : renderAtts (reverse as) (t : "<" : acc)) ts
+              (if t == "script" || t == "style" then goUnescaped else go)
+              (">" : renderAtts (reverse as) (t : "<" : acc)) ts
           go acc (TagClose t : ts) =
               go (">" : t : "</" : acc) ts
           go acc (TagText t : ts) =
               go (escape t : acc) ts
           go acc (_ : ts) = go acc ts -- make compiler happy
+          goUnescaped acc (TagText t : ts) =
+              go (t : acc) ts
+          goUnescaped acc ts = go acc ts
           renderAtts [] rs = rs
           renderAtts ((a,""):as) rs =
               a : " " : renderAtts as rs
diff --git a/fast-tagsoup.cabal b/fast-tagsoup.cabal
--- a/fast-tagsoup.cabal
+++ b/fast-tagsoup.cabal
@@ -1,7 +1,7 @@
 cabal-version:  >= 1.6
 name:           fast-tagsoup
-version:        1.0.12
-copyright:      Vladimir Shabanov 2011-2016
+version:        1.0.13
+copyright:      Vladimir Shabanov 2011-2017
 author:         Vladimir Shabanov <vshabanoff@gmail.com>
 maintainer:     Vladimir Shabanov <vshabanoff@gmail.com>
 homepage:       https://github.com/vshabanov/fast-tagsoup
