• Resolved pascalgaggero

    (@pascalgaggero)


    Hi, I was wondering if there was a way to include HTML in the popup_text such as link or formatting tags:

    [leaflet-map height=1000 width=1000 lat=46.94 lng=7.44 zoom=5]
    [leaflet-geojson src="https://gaggero.ch/pog/GPX/Track_2020_ViaJacobi4CH_clean.geojson" popup_text="<b>Via</b> Jocobi 4 <a href='url'>go to the post</a>"]

    Many thanks in advance for your help,

    Pascal

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pascalgaggero

    (@pascalgaggero)

    [leaflet-map height=1000 width=1000 lat=46.94 lng=7.44 zoom=5]
    <code>[leaflet-geojson src=&quot;https://gaggero.ch/pog/GPX/Track_2020_ViaJacobi4CH_clean.geojson&quot;</code>popup_text="<b>Via</b> Jocobi 4 <a href='url'>go to post</a>"]
    • This reply was modified 5 years, 2 months ago by pascalgaggero.
    Plugin Contributor hupe13

    (@hupe13)

    I’m using popup with links like:
    [leaflet-geojson fitbounds=0 src="url-to-file.geojson" color="#008000"]<a href="url">go to post</a>[/leaflet-geojson]
    Formating should work also.

    Thread Starter pascalgaggero

    (@pascalgaggero)

    Thanks for the suggestion! Escaping the HTML works very well!

    Plugin Contributor hupe13

    (@hupe13)

    3 years ago I had a similar question. 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Link in popup_text’ is closed to new replies.