mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
Escape/unescape funcions
This commit is contained in:
@ -46,3 +46,5 @@ if (document.currentScript && document.currentScript.src) {
|
||||
document.getElementsByTagName('HEAD')[0].appendChild(link);
|
||||
}
|
||||
}
|
||||
// escape and unescape func
|
||||
!function(e){function n(n){function t(e){return n[e]}var e="(?:"+Object.keys(n).join("|")+")",u=RegExp(e),c=RegExp(e,"g");return function(e){return e=null==e?"":""+e,u.test(e)?e.replace(c,t):e}}escape=n({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),unescape=n({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"}),e.escape=escape,e.unescape=unescape}(window);
|
||||
|
||||
Reference in New Issue
Block a user