Fix problem of HTML entities not appearing in website search results master
authorNick Downing <nick@ndcode.org>
Fri, 11 Feb 2022 06:24:19 +0000 (17:24 +1100)
committerNick Downing <nick@ndcode.org>
Fri, 11 Feb 2022 06:24:19 +0000 (17:24 +1100)
src/summarise.c

index 59c4572..770f2fa 100644 (file)
@@ -459,13 +459,16 @@ static struct sentence *extract(struct summarise *sum, struct persum *ps,
             }
 
             /* copy term in, before we mangle it */
+#if 0 // Nick, we want to intermix <b>...</b> with any HTML entities in text
             if (type == INDEX_SUMMARISE_TAG) {
                 unsigned int tmp = sent->buflen;
 
                 /* need to escape HTML entities in the term */
                 len = html_cpy(&sent, ps->termbuf, len);
                 sent->buflen = tmp;
-            } else {
+            } else
+#endif
+            {
                 memcpy(sent->buf + sent->buflen, ps->termbuf, len);
             }