[mapserver-users] query template item tag question
Steve Lime
Steve.Lime at dnr.state.mn.us
Tue Nov 17 12:30:39 PST 2009
Escape=html, I believe, will escape HTML entities into readable text (preventing cross-site scripting) so
I think what you're seeing is correct. If you don't want escaping try escape=none instead.
Steve
>>> On 11/17/2009 at 1:48 PM, in message
<675141.34479.qm at web83405.mail.sp1.yahoo.com>, Jennifer Shanks
<shanksje at yahoo.com> wrote:
> Hello everyone,
>
> I'm using a query template to return results of a getfeatureinfo request.
> One of the attributes is a URL and I would like to format it with an anchor
> tag if a value exists, and display nothing if a value does not exist. So far
> I've tried:
>
> [item name=park_url format="Park Website: <a href='$value' target='_blank'
> >$value</a>" escape=html]
>
> The problem with the above is that the format string comes out exactly as
> written rather than as html. Can someone point me in the right direction?
>
> Thanks,
> Jennifer
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list