@@ -11,6 +11,8 @@ module.exports = toHtml
1111var quotationMark = '"'
1212var apostrophe = "'"
1313
14+ var deprecationWarningIssued = false
15+
1416function toHtml(node, options) {
1517 var settings = options || {}
1618 var quote = settings.quote || quotationMark
@@ -29,6 +31,15 @@ function toHtml(node, options) {
2931 )
3032 }
3133
34+ if (settings.allowDangerousHTML !== undefined) {
35+ if (!deprecationWarningIssued) {
36+ deprecationWarningIssued = true
37+ console.warn(
38+ 'Deprecation warning: `allowDangerousHTML` is a nonstandard option, use `allowDangerousHtml` instead'
39+ )
40+ }
41+ }
42+
3243 return one(
3344 {
3445 valid: settings.allowParseErrors ? 0 : 1,
@@ -44,7 +55,7 @@ function toHtml(node, options) {
4455 tightLists: settings.tightCommaSeparatedLists,
4556 tightClose: settings.tightSelfClosing,
4657 collapseEmpty: settings.collapseEmptyAttributes,
47- dangerous: settings.allowDangerousHTML,
58+ dangerous: settings.allowDangerousHtml || settings. allowDangerousHTML,
4859 voids: settings.voids || voids.concat(),
4960 entities: settings.entities || {},
5061 close: settings.closeSelfClosing,
0 commit comments