Skip to content

Commit

Permalink
Turn on allowHtml by default for RichText, document that it can be a …
Browse files Browse the repository at this point in the history
…security issue in some situations
  • Loading branch information
dfreedm committed Apr 6, 2012
1 parent 7f6679a commit 4d5c4bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/ui/RichText.js
Expand Up @@ -13,6 +13,12 @@ enyo.kind({
name: "enyo.RichText",
classes: "enyo-richtext enyo-selectable",
published: {
/**
_allowHtml_ is enabled by default in RichText to take advantage of all the rich editing properties.
However, this allows for **ANY** HTML to be inserted into the RichText, including _iframe_ and _script_ tags, which can be a secuity concern in some situations.
If set to false, inserted HTML will be escaped.
*/
allowHtml: true,
disabled: false,
value: ""
},
Expand Down

0 comments on commit 4d5c4bc

Please sign in to comment.