[Mapserver-dev] XML Entities

Paul Ramsey pramsey at refractions.net
Wed Oct 8 16:26:42 EDT 2003


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:
>>
>> <   &lt;
>>  >   &gt;
>> "   &quot;
>> &   &amp;
>> '   &apos;
>>
> 
> 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


-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the mapserver-dev mailing list