[mapserver-users] About html code inside query attribute responses

Manuel Aymerich maymerich at argongra.es
Mon Mar 14 11:17:43 EDT 2011


Hi,

 

I've prepared WMS getFeautreInfo queries so that mapserver's template
receives pure html attributes (containing the <br> tag for example). I would
like to show this html code as it is. So that it integrates with the
existing html header, footer and the rest of the template inside mapservers
response, hoping that at the frontend the html response could be interpreted
as a whole. However, the html stored data is shown either as escaped html or
as url encoded data. I'ver read mapserver documentation but I had not
success while implementing each possible solution:

 

If I try:

 

[attribute name] : I get escaped html (<br> is translated into &lt;br&gt;)

[attrribute name_esc]: I get url encdes text (<br> is translated into
%3Cbr%2F%3)

[attribute item name_raw]: I get something in between but not pure html
(<br> is translated into \n).

 

Mapserver documentation says ".By default the attributes are encoded
especially for HTML representation" but I now disagree.

 

Any ideas about what's happening here? Any workaround solutions?

 

Thanks in advance,

 

Manuel Aymerich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110314/97cf4d13/attachment.html


More information about the mapserver-users mailing list