mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-14 13:13:59 +02:00
Update v-html@bZxtIBeIfeUcR32LZWrPW.md - v-html,HTML typo fix (#7394)
Fixed typos "v-thml" and "HTMl" to "v-html" and "HTML" respectively.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# v-html
|
||||
|
||||
The `v-thml` directive is similar to the `v-text` directive, but the difference is that `v-html` renders its content as HTML. This means that if you pass an HTML element it will be rendered as an element and not plain text. Since the content is render as HTMl, it can pose a security risk if the content contains malicius JavaScript code. For this reason you should never use this directive in combination with user input, unless the input is first properly sanitized.
|
||||
The `v-html` directive is similar to the `v-text` directive, but the difference is that `v-html` renders its content as HTML. This means that if you pass an HTML element it will be rendered as an element and not plain text. Since the content is render as HTML, it can pose a security risk if the content contains malicius JavaScript code. For this reason you should never use this directive in combination with user input, unless the input is first properly sanitized.
|
||||
|
||||
Example:
|
||||
```vue
|
||||
|
Reference in New Issue
Block a user