diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-05-24 00:58:41 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-05-24 00:58:41 +0200 |
commit | 7f5ccf8cd227e14683ef6c3bef5afb58f6857918 (patch) | |
tree | 16cb1d1b3acd1a286d0523bf9a0ba9ad7335c680 /tests | |
parent | 1605bf39ab342ea5d904fe96df81dd0f55bd3bcf (diff) | |
download | blogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.tar.gz blogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.tar.bz2 blogc-7f5ccf8cd227e14683ef6c3bef5afb58f6857918.zip |
content-parser: encode HTML entities in DESCRIPTION variable
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check_content_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |