[Mapserver-dev] XML Entities
Daniel Morissette
morissette at dmsolutions.ca
Wed Oct 8 16:33:14 EDT 2003
Tanks. I've added the aportrophe to the msEncode/DecodeHTMLEntities()
functions in the 4.1 (CVS) source.
Daniel
Paul Ramsey wrote:
> Those are in fact the 5 (and only 5) built in entities. A "safety first"
> approach to XML would do them all. Any XML parser will re-expand them to
> the real characters, so it cannot hurt, only help.
> P.
>
> Daniel Morissette wrote:
>
>> Paul Ramsey wrote:
>>
>>> Er, expansion, the following substitutions should be done:
>>>
>>> < <
>>> > >
>>> " "
>>> & &
>>> ' '
>>>
>>
>> If we decide to go that route then a call to msEncodeHTMLEntities()
>> (mapstring.c) can be used to do that. BTW, should the "'" (&apos)
>> really be encoded? If you can confirm that it needs to be then we can
>> quickly add it to the function.
>>
>> Daniel
>
>
>
More information about the mapserver-dev
mailing list