From 9a16bd421661121f2d1d6463c0acba32065461ce Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 23 Dec 2015 15:16:29 -0500 Subject: [PATCH] fix escaped script tags too --- parse-html.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parse-html.coffee b/parse-html.coffee index cea8fa1..8b2712d 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -3343,6 +3343,11 @@ parse_html = (args) -> tok_state = tok_state_self_closing_start_tag return # fall through + if c is '>' + if is_appropriate_end_tag tok_cur_tag + tok_state = tok_state_data + return tok_cur_tag + # fall through if is_uc_alpha(c) tok_cur_tag.name += c.toLowerCase() temporary_buffer += c.toLowerCase() -- 1.7.10.4