[Mapserver-users] 4.0 html in the .dbf

Steve Lime steve.lime at dnr.state.mn.us
Tue Aug 5 11:46:36 PDT 2003


MapServer 4.0 supports the following "types" of escaping. Assuming you
have
a column called NAME:

 [NAME] - gets you a HTML escaped version of the data
 [NAME_esc] - gets you a URL escaped version of the data
 [NAME_raw] - gets you the data "as is"

So, you'd want to use the _raw version. The decision was made to  make
the HTML
escaped version the default because non-HTML text is much more common
than
HTML. I'll notify the template HOWTO maintainer about the change.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> <Jean-Francois.Doyon at ccrs.nrcan.gc.ca> 08/05/03 01:07PM >>>
Hmmmm I have no easy solution to this, but I'm glad to hear about it,
as we
do the same thing here.
 
This is new behavior, 3.6.x didn't use to escape the contents of the
data
returned from the DBF ...
 
Any great reason this was done ? I would suggest that instead of doing
that,
we should use the "_esc" notation to force escaping, as is done with
various
other template substitutions ?
 
J.F.

-----Original Message-----
From: Shannon Scott [mailto:sscott at gwi.net] 
Sent: Tuesday, August 05, 2003 1:56 PM
To: Mapserver-users at lists.gis.umn.edu 
Subject: [Mapserver-users] 4.0 html in the .dbf


Hello,
I have an app that reads some anchor html tags from a dbf when the
coresponding polygon is clicked on, and creates a report in the browser
with
the links from the dbf...
Then the user can click on the associated link and go to a website that
has
more info about the polygon.
When I upgraded to the new 4.0 version, the links stopped working.
It seems the <A ... </A> tags are being replaced by <A ...
</A>,
and then the browser doesn't recognize them as links.
Any workaround?  If not, Can someone direct me to the code that
converts the
html?
Thank You.
Shannon
 




More information about the MapServer-users mailing list