Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Aug 25, 2023
1 parent 482062a commit fbfa23f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/en/docs/framework/vuejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ toc: true
## Client-Side Injection

```js
// XSS Injection
Vue.createApp({
template: `<div>` + userProvidedString + `</div>`
}).mount('#app')
Expand All @@ -30,8 +31,10 @@ h('div', { innerHTML: this.userProvidedHtml })

<div innerHTML={this.userProvidedHtml}></div>

// Javascript protocol injection
<a :href="userProvidedUrl">click me</a>

// CSS Injection
<h1 :style="userProvidedStyles">Title</h1>
```

Expand Down

0 comments on commit fbfa23f

Please sign in to comment.