[mapserver-users] html tags in GetFeatureInfo

Horn, Sören Soeren.Horn at geobasis-bb.de
Fri Sep 18 02:55:11 PDT 2015


Thanks Jörg,

this solve the problem.

Code snippet from my Getfeatureinfo html:
...
<tr>
  <td>Content</td>
  <td>[item name="description" escape="none"]</td>
</tr>     
...



-----Ursprüngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Jörg Thomsen
Gesendet: Freitag, 18. September 2015 11:33
An: mapserver-users at lists.osgeo.org
Betreff: Re: [mapserver-users] html tags in GetFeatureInfo

Hello Sören,

I guess the html-tags are escaped by mapserver, try to use the raw-output:
> [attribute name],[attrribute name_esc],[attribute item name_raw] ...
> By default the attributes are encoded
> especially for HTML representation. In addition the escaped version  
>(for use in URLs) as well as the raw data is available.

http://mapserver.org/mapfile/template.html

Jörg

Am 18.09.2015 um 11:13 schrieb Horn, Sören:
> Hi,
> 
> 
> 
> I'm using the GetFeatureInfo to show some column values from a 
> database.
> 
> Everything works just fine.
> 
> 
> 
> But now I want to use html tags, such as <strong>, <em> and <br> for  
> styling my output text.
> 
> So I tried to write my content with the html syntax, like
> 
> "<strong>some-strong-content</strong><br>normal-text<em>some-emphasize
> d-text</em>",
>
>
> 
in a PostGIS column description (with datatype 'text').
> 
> 
> 
> Code snippet from my Getfeatureinfo html:
> 
> ...
> 
> <tr>
> 
> <td>Content</td>
> 
> <td>[description]</td>
> 
> </tr>
> 
> ...
> 
> 
> 
> But the GetFeatureInfo do not interpret the html tags and write the 
> exact column value (with all html tag).
> 
> 
> 
> Is there a possibility to use html tags in a PostGIS database that are 
> interpreted by MapServers GetFeatureInfo?
> 
> 
> 
> 
> 
> OS:  Debian GNU/Linux 7.8 (wheezy)
> 
> kernel: 3.2.0-4-amd64
> 
> 
> 
> MapServer: 6.4
> 
> PostGIS: 1.5
> 
> 
> 
> 
> 
> 
> 
> Best regards,
> 
> Sören Horn
> 
> 
> 
> __________________
> 
> *Landesvermessung und Geobasisinformation Brandenburg***
> 
> Dezernat 43 - GDI, Kontaktstelle, INSPIRE-Zentrale
> 
> Herr Sören Horn
> 
> Heinrich-Mann-Allee 103 - Haus 19, 14473 Potsdam
> 
> 
> 
> Mail: soeren.horn at geobasis-bb.de <mailto:soeren.horn at geobasis-bb.de>
> 
> Tel.: (03 31) 88 44 - 247
> 
> http://www.geobasis-bb.de <http://www.geobasis-bb.de/>
> 
> 
> 
> 
> 
> _______________________________________________ mapserver-users 
> mailing list mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

_______________________________________________
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