[Mapserver-dev] Re: [Mapserver-users] HTML characters in template

Daniel Morissette morissette at dmsolutions.ca
Thu Jan 9 11:15:40 EST 2003


Steve Lime wrote:
> 
> Yup, but I'm not sure it fixes your problem. The _esc replacement is
> basically there so you could escape data for inclusion in other URLs.
> Special characters are replaced with their hexidecimal ascii codes so a
> space becomes %20 and so on. I think what you want is html escapes and
> we'd need to add that, probably as another substitution qualifier:
> 
>   [variable_html] or something like that
> 

FYI I've written a function msEncodeHTMLEntities() in mapows.c that is
used in the WMS/WFS stuff.  It is also used in mapgml.c to encode
attribute values.

Perhaps the function could be moved to mapstring.c or a more generic
location and you could use it for this. Other than that it is ready to
use.

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-dev mailing list