From 0730f269f01a5ecd12eaa465d0fd05ca4e5589ba Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 21 Jun 2004 18:53:07 +0000 Subject: encode entities. fixes bug #46677. 2004-06-21 Jeffrey Stedfast * filter-input.c (xml_encode): encode entities. fixes bug #46677. svn path=/trunk/; revision=26443 --- filter/filter-input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filter/filter-input.c') diff --git a/filter/filter-input.c b/filter/filter-input.c index 021aa54a28..e83da431fe 100644 --- a/filter/filter-input.c +++ b/filter/filter-input.c @@ -252,7 +252,11 @@ xml_encode (FilterElement *fe) char *str = l->data; cur = xmlNewChild (value, NULL, type, NULL); + + str = xmlEncodeEntitiesReentrant (NULL, str); xmlNodeSetContent (cur, str); + xmlFree (str); + l = l->next; } -- cgit