Legacy
Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.
You are viewing an older version of Mapbox.js. Check out v3.3.1 for the latest.
L.mapbox.sanitize(string)
A HTML sanitization function, with the same effect as the default value of the sanitizer
option of L.mapbox.featureLayer
, L.mapbox.gridControl
, and L.mapbox.legendControl
.
Options | Value | Description |
---|---|---|
text | string | String of content you wish to sanitize. |