From: Jason Woofenden Date: Wed, 23 Dec 2015 20:16:29 +0000 (-0500) Subject: fix escaped script tags too X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=9a16bd421661121f2d1d6463c0acba32065461ce fix escaped script tags too --- 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()