Skip to content

Encode HTML data ​

Most of the WYSIWYG editors generate a lot of HTML to show the content correctly. However, if we put this content inside our {add_marker popup:content="{editor_field}"} it will not work most of the time.

The thing is that the EE parser cannot deal with this complex markup inside a parameter.

To solve this we introduce a new tag {exp:reinos_maps:encode}{your_editor_field}{/exp:reinos_maps:encode}. This tag will encode the data and parse it later on to the map.

Currently we support the following parameters

  • popup:content="" of {maps:add_marker}, {maps:add_circle}, {maps:add_polygon}, {maps:add_polyline} and {maps:add_rectangle}

The tag ​

{exp:reinos_maps:encode}
Example use case ​
{maps:add_marker
    popup:content="{exp:reinos_maps:encode}your complex markup{/exp:reinos_maps:encode}"
}