goiblas / Map-Block-Leaflet

Map Block Leaflet for WordPress 🗺️
https://wordpress.org/plugins/map-block-leaflet
GNU General Public License v2.0
17 stars 10 forks source link

Problem with html description #59

Closed Nejc-Podlogar closed 3 months ago

Nejc-Podlogar commented 3 months ago

Hello I think there is a problem with displaying the description for the markers. I am currently on: Wordpress 6.5.4 and Plugin version: 3.2.0

I am using the multi marker bloc, and I added the custom marker with the correct location, in the builder i can see the display as it should be:

image

But when i go into preview it converts completely to text and it looks weird:

image

I don't know if I am doing something wrong or not, but here are the settings for the marker:

image

Nejc-Podlogar commented 3 months ago

For the HTML not being accounted for, the problem is the sanitize() in render.php

For the design, I am still looking into it.

goiblas commented 3 months ago

Thank you for reporting the bug, I try to solve it as soon as possible.

goiblas commented 3 months ago

I have released a version that solves the problem of the html description.

Try it, if the rendering problems persist, send me the url and I'll check it

Nejc-Podlogar commented 3 months ago

Hi.

The html tags are rendered correctly, but the overall display of the popup when i publish (in the builder they are displayed correctly) is still broken:

image

I have added the map to a site that is currently not used. So you can check for yourself https://zlet.taborniki.si/pomembni-datumi/

Nejc-Podlogar commented 3 months ago

Never mind. The theme is the problem for the display of the popup. I need to update the theme. I think the plugin works okay. ( i changed to another theme and it displays correctly)