Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azu/vue-decorate-html-without-v-html

Vue: Avoid to XSS on decorating for user input.
https://github.com/azu/vue-decorate-html-without-v-html

demo vue xss

Last synced: 21 days ago
JSON representation

Vue: Avoid to XSS on decorating for user input.

Awesome Lists containing this project

README

        

# vue-decorate-html-without-v-html

Demo: Avoid to XSS on decorating for user input.

Visit:

- [src/components/UnSafeParagraph.vue](src/components/UnSafeParagraph.vue) has a vulnerability.
- [src/components/SafeParagraph.vue](src/components/SafeParagraph.vue) is safe implementation, but a bit complex.

## XSS vector

Input: `alert(1)`

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn run serve
```

### Compiles and minifies for production
```
yarn run build
```

### Run your tests
```
yarn run test
```

### Lints and fixes files
```
yarn run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).