Skip to content

Commit

Permalink
add vuejs
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Aug 25, 2023
1 parent 82dc73c commit 482062a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions content/en/docs/framework/vuejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: "VueJS"
description: "Cheatsheet on VueJS"
lead: "Cheatsheet on VueJS"
date: 2023-01-01T00:00:00+00:00
lastmod: 2023-01-01T00:00:00+00:00
draft: false
images: []
menu:
docs:
parent: "framework"
weight: 620
toc: true
---

## VueJS

[VueJS](https://vuejs.org/) is an approachable, performant and versatile framework for building web user interfaces.

## Client-Side Injection

```js
Vue.createApp({
template: `<div>` + userProvidedString + `</div>`
}).mount('#app')

<div v-html="userProvidedHtml"></div>

h('div', { innerHTML: this.userProvidedHtml })

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

<a :href="userProvidedUrl">click me</a>

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

> Source: [VueJS - Security](https://vuejs.org/guide/best-practices/security.html)

0 comments on commit 482062a

Please sign in to comment.