Commits

jjacky  committed 1e3e4e6

news parser now handles "all" kinds of br (<br>, <br />, etc)

  • Participants
  • Parent commits 32e23ef

Comments (0)

Files changed (1)

         *ss = '\n';
     }
     /* now turn <br> into \n */
-    while ((ss = strstr (s, "<br>")))
+    while ((ss = strstr (s, "<br")))
     {
+        if (!(end = strchr (ss, '>')))
+        {
+            break;
+        }
         *ss = '\n';
-        start = ss + 4;
+        start = end + 1;
         memmove (++ss, start, strlen (start) + 1);
     }
     /* convert some HTML stuff */