--- layout: api title: "v1.6.0 API: L.mapbox.sanitize(string)" categories: api version: v1.6.0 permalink: /api/v1.6.0/l-mapbox-sanitize --- {% raw %}
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. |