From 10e28ef750f0c7e6bc0dfb7aabaaad8edf059e3c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 17 Apr 2015 22:55:39 -0700 Subject: More principled fix for #1820. If the tag parses as a comment, we check to see if the input starts with `") + | otherwise -> fail "bogus comment mode, HTML5 parse error" _ -> do rendered <- manyTill anyChar (char '>') return (next, rendered ++ ">") -- cgit v1.2.3