mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Release commit
This commit is contained in:
parent
19f089d0bf
commit
053fd1c60b
5 changed files with 49 additions and 64 deletions
|
|
@ -1548,36 +1548,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sStr
|
||||
* @return {string}
|
||||
*/
|
||||
Utils.FullHtmlEncode = function (sStr)
|
||||
{
|
||||
var
|
||||
iIndex = 0,
|
||||
sChr = '',
|
||||
iChrCode = 0,
|
||||
sResult = '';
|
||||
;
|
||||
|
||||
for (iIndex = 0; iIndex < sStr.length; iIndex++)
|
||||
{
|
||||
sChr = sStr[iIndex];
|
||||
if (-1 < Utils.inArray(sChr, ['&', '<', '>', '"', '`', '\'']))
|
||||
{
|
||||
sResult += _.escape(sChr);
|
||||
}
|
||||
else
|
||||
{
|
||||
iChrCode = sChr.charCodeAt(0);
|
||||
sResult += (iChrCode > 128) ? '&#' + iChrCode + ';' : sChr;
|
||||
}
|
||||
}
|
||||
|
||||
return sResult;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Object|Array} mObjectOrObjects
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue