[ppwcode] r6821 committed - escapeXml by default

1 view
Skip to first unread message

ppw...@googlecode.com

unread,
May 20, 2013, 2:01:24 PM5/20/13
to ppwco...@googlegroups.com
Revision: 6821
Author: jand...@gmail.com
Date: Mon May 20 10:59:58 2013
Log: escapeXml by default
http://code.google.com/p/ppwcode/source/detail?r=6821

Modified:

/javascript/vernacular/semantics/trunk/src/semantics/ui/MultiLangValueOutput.js

=======================================
---
/javascript/vernacular/semantics/trunk/src/semantics/ui/MultiLangValueOutput.js
Mon May 20 07:46:51 2013
+++
/javascript/vernacular/semantics/trunk/src/semantics/ui/MultiLangValueOutput.js
Mon May 20 10:59:58 2013
@@ -55,6 +55,11 @@
if (!opt.locale) {
opt.locale = this._lookUpInWidgetHierarchy("lang",
_MultiLangParent) || kernel.locale;
}
+ // default for escapeXml (where applicable) should be true;
default is false in formatter
+ // so, we need to set it to true, if it was not explicitly set
to false in the formatOptions
+ if (opt.escapeXml !== false) {
+ opt.escapeXml = true;
+ }
this._extraFormatOption(opt);
result = this.value.constructor.format(this.value, opt);
}
Reply all
Reply to author
Forward
0 new messages