public
/
zettair.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d02c0e
)
Fix problem of HTML entities not appearing in website search results
master
author
Nick Downing
<nick@ndcode.org>
Fri, 11 Feb 2022 06:24:19 +0000
(17:24 +1100)
committer
Nick Downing
<nick@ndcode.org>
Fri, 11 Feb 2022 06:24:19 +0000
(17:24 +1100)
src/summarise.c
patch
|
blob
|
history
diff --git
a/src/summarise.c
b/src/summarise.c
index
59c4572
..
770f2fa
100644
(file)
--- a/
src/summarise.c
+++ b/
src/summarise.c
@@
-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);
}