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: [email protected] [mailto:[email protected]] Im Auftrag von Jörg Thomsen Gesendet: Freitag, 18. September 2015 11:33 An: [email protected] 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: [email protected] <mailto:[email protected]> > > Tel.: (03 31) 88 44 - 247 > > http://www.geobasis-bb.de <http://www.geobasis-bb.de/> > > > > > > _______________________________________________ mapserver-users > mailing list [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
