aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-24 00:58:41 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-24 00:58:41 +0200
commit7f5ccf8cd227e14683ef6c3bef5afb58f6857918 (patch)
tree16cb1d1b3acd1a286d0523bf9a0ba9ad7335c680 /src
parent1605bf39ab342ea5d904fe96df81dd0f55bd3bcf (diff)
downloadblogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.tar.gz
blogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.tar.bz2
blogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.zip
content-parser: encode HTML entities in DESCRIPTION variable
Diffstat (limited to 'src')
-rw-r--r--src/content-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content-parser.c b/src/content-parser.c
index 3cb0ddb..2062814 100644
--- a/src/content-parser.c
+++ b/src/content-parser.c
@@ -110,7 +110,7 @@ blogc_fix_description(const char *paragraph)
break;
current++;
}
- tmp = sb_strdup(sb_str_strip(rv->str));
+ tmp = blogc_htmlentities(sb_str_strip(rv->str));
sb_string_free(rv, true);
return tmp;
}