Skip to content

Commit 8d9a66b

Browse files
committed
adding the notice of sanitizing HTML
1 parent 6032660 commit 8d9a66b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ $htmlString = '<p>Hello world</p>';
133133

134134
If the array is missing the `html` key, it won't render the passed variable, so make sure to pass it if you want to render an HTML description.
135135

136+
> **Note**
137+
> Please notice that `description` key accepts HTML, and it will render it, so if you are getting your data from your users, please make sure to sanitize it before using it.
138+
136139
Also you can customize the marker icons, instead of using the default ones provided by Mapbox.
137140
To do so you can add `icon` key to the array of markers as follows:
138141

0 commit comments

Comments
 (0)