Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Apr 20, 2021
1 parent b0dc960 commit 472ffe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const style = new TextStyle({ fontSize: 20 });
const text = new HTMLText("Hello World", style);
```

_**Important:** Because the HTMLText object takes a raw HTML string, it's represents a potential vector for [XSS](https://en.wikipedia.org/wiki/Cross-site_scripting), it's strongly encourage you santize input especially if you're accepting user-strings._

## Styles

Not all styles and values are compatible between PIXI.Text, mainly because Text is rendered using a DOM element instead of Context2D's fillText API.
Expand Down

0 comments on commit 472ffe3

Please sign in to comment.