From 92f5ca6060f3bf83705171243b55a3f85a30ecee Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 3 Oct 2016 16:16:47 -0700 Subject: adding source of funtion found online --- system/admin/static/common/js/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system/admin/static/common/js/util.js') 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 -- cgit v1.2.3