summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-03 16:16:47 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-03 16:16:47 -0700
commit92f5ca6060f3bf83705171243b55a3f85a30ecee (patch)
tree351e5fc223375fdb9628a7f6b602ac658401ea65
parent09e3416b9b6576ad03750caa7c7d095f940e2448 (diff)
adding source of funtion found online
-rw-r--r--system/admin/static/common/js/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/admin/static/common/js/util.js b/system/admin/static/common/js/util.js
index dc0db7c..d45d9e3 100644
--- a/system/admin/static/common/js/util.js
+++ b/system/admin/static/common/js/util.js
@@ -1,4 +1,5 @@
-/// Replaces commonly-used Windows 1252 encoded chars that do not exist in ASCII or ISO-8859-1 with ISO-8859-1 cognates.
+// Replaces commonly-used Windows 1252 encoded chars that do not exist in ASCII or ISO-8859-1 with ISO-8859-1 cognates.
+// modified from http://www.andornot.com/blog/post/Replace-MS-Word-special-characters-in-javascript-and-C.aspx
function replaceBadChars(text) {
var s = text;
// smart single quotes and apostrophe