From 7f5ccf8cd227e14683ef6c3bef5afb58f6857918 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 24 May 2016 00:58:41 +0200 Subject: content-parser: encode HTML entities in DESCRIPTION variable --- tests/check_content_parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c index ab6853a..783d3f3 100644 --- a/tests/check_content_parser.c +++ b/tests/check_content_parser.c @@ -100,6 +100,9 @@ test_fix_description(void **state) s = blogc_fix_description(" bola\r\n guda lol\r\n asd\r\n"); assert_string_equal(s, "bola guda lol asd"); free(s); + s = blogc_fix_description("b'o\"l<>a"); + assert_string_equal(s, "b'o"l<>a"); + free(s); } -- cgit v1.2.3-18-g5258