You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,24 @@ Of course, you can use a reactive property:
162
162
<buttonv-tooltip="tooltipContent">
163
163
```
164
164
165
+
**⚠️ HTML is enabled in the tooltip by default. If you plan on using content coming from the users, please disable HTML parsing with the `html` global option to prevent XSS attacks:**
166
+
167
+
```js
168
+
importVTooltipfrom'v-tooltip'
169
+
Vue.use(VTooltip, {
170
+
defaultHtml:false,
171
+
})
172
+
```
173
+
174
+
Or directly on package:
175
+
176
+
```js
177
+
importVTooltipfrom'v-tooltip'
178
+
VTooltip.options.defaultHtml=false
179
+
```
180
+
181
+
*You can then specify `html: true` on each tooltip you want to render HTML in. See below for more info on the tooltip options.*
182
+
165
183
You can specify the tooltip position as a modifier:
0 commit comments