You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Encode some tags, leaving those set in whitelist as they are.
39
+
* @param {string} html - value to encode
40
+
* @param {object} options for encoding. Optional. If not passed, using default in common.
41
+
* @returns {string} encode string
42
+
*/
43
+
functionencodeSomeHtml(html,options){
44
+
if(options){
45
+
returnfilterXSS(html,options);
46
+
}
47
+
else{
48
+
returnfilterXSS(html,htmlEncodeOptions);
49
+
}
50
+
}
51
+
22
52
/**
23
53
* By default only pre-login property file localization is available on prelogin pages, but you can additionally load other localization files, like for example needed for your plugin, using this function
24
54
* @param {string} name - base name of the property file without the locale/language. Should be the same name as your plugin
@@ -39,8 +69,12 @@ function addLocalization(name, path, callback) {
0 commit comments