webdump

Fork of git://git.codemadness.org/webdump
git clone git://git.z3bra.org/webdump.git
Log | Files | Refs | README | LICENSE

commit a0685543b462a0d1f1cffda7a117a95662fcfdcf
parent bc99a8d588ffa6f168c4171613a213eb4a29cc75
Author: Willy Goiffon <dev@z3bra.org>
Date:   Wed,  9 Oct 2019 11:28:59 +0200

Translate &NBSP; to standard space

Diffstat:
xml.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xml.c b/xml.c @@ -255,11 +255,13 @@ namedentitytostr(const char *e, char *buf, size_t bufsiz) { "gt;", '>' }, { "apos;", '\'' }, { "quot;", '"' }, + { "nbsp;", ' ' }, { "AMP;", '&' }, { "LT;", '<' }, { "GT;", '>' }, { "APOS;", '\'' }, - { "QUOT;", '"' } + { "QUOT;", '"' }, + { "NBSP;", ' ' } }; size_t i;