Fix problem with save graph

This commit is contained in:
Unick Soft committed 2020-08-20 19:07:20 +02:00
1 parent 475f4ea88b
commit 5e7d07a9aa
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -1,6 +1,9 @@
function gEncodeToHTML(str)
{
if (typeof str !== 'string')
return str;
return str.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
@@ -10,6 +13,9 @@ function gEncodeToHTML(str)
function gDecodeFromHTML(str)
{
if (typeof str !== 'string')
return str;
return str.replace(/&apos;/g, "'")
.replace(/&quot;/g, '"')
.replace(/&gt;/g, '>')