handle the case of < in quoted attributes, Bastian Kleineidam Daniel

* HTMLparser.c test/HTML/lt.html result/HTML/lt.html*:
  handle the case of < in quoted attributes, Bastian Kleineidam
Daniel
diff --git a/HTMLparser.c b/HTMLparser.c
index da4666c..af941a0 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1970,7 +1970,8 @@
     /*
      * Ok loop until we reach one of the ending chars
      */
-    while ((CUR != 0) && (CUR != stop) && (CUR != '>')) {
+    while ((CUR != 0) && (CUR != stop)) {
+	if ((stop == 0) && (CUR == '>')) break;
 	if ((stop == 0) && (IS_BLANK(CUR))) break;
         if (CUR == '&') {
 	    if (NXT(1) == '#') {