From bc23293bb178b6abcafa0f67d432cbff6ac3c861 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 15 Feb 2017 00:07:28 +0100 Subject: content-parser: html-encode pre-defined title. updated man pages --- src/blogc/content-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/blogc/content-parser.c b/src/blogc/content-parser.c index 415e5ee..86aa74b 100644 --- a/src/blogc/content-parser.c +++ b/src/blogc/content-parser.c @@ -836,7 +836,7 @@ blogc_content_parse(const char *src, size_t *end_excerpt, char **title, (real_end != 0 ? real_end : current); tmp = bc_strndup(src + start, end - start); if (title != NULL && *title == NULL) - *title = bc_strdup(tmp); + *title = blogc_htmlentities(tmp); parsed = blogc_content_parse_inline(tmp); slug = blogc_slugify(tmp); if (slug == NULL) -- cgit v1.2.3-18-g5258