Re: [xml] xmlEncodeSpecialChars vs xmlEncodeEntitiesReentrant
- From: Nikolay Sivov <bunglehead gmail com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] xmlEncodeSpecialChars vs xmlEncodeEntitiesReentrant
- Date: Wed, 10 Feb 2010 19:39:03 +0300
On 2/10/2010 19:12, Daniel Veillard wrote:
On Wed, Feb 10, 2010 at 06:15:38PM +0300, Nikolay Sivov wrote:
Both calls have a header comment about their reentrance capability.
Is it a comment bug?
Does reentrant in this case mean that I can pass a string already
encoded with xmlEncodeEntitiesReentrant
to this call again?
no it's related to xmlEncodeEntities() deprecated function which used
a global variable for doing the conversion and hence was not
thread-safe.
Also it's not clear how to deal with a case my string is already
escaped, or partially escaped for example.
Looks like these helpers will break it converting from "&" to
"&amp;"...
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]