This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am epheatt on github. | |
* I am epheatt (https://keybase.io/epheatt) on keybase. | |
* I have a public key ASBB4ZRHNbeik-lY1A7wwLimV9o75MPNjLFD6-KzkumwVgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.websafeUnicode = function(options) { | |
var ival = $(this).val(); | |
var oval = $.trim(ival); | |
if( oval.length > 0 ){ | |
//strip iso-8859-1 and windows-1252 control characters | |
oval = oval.replace(/[\u0081\u008D\u008F\u0090\u009D]/g,''); | |
//Shift iso-8859-1 and windows-1252 up to unicode websafe equivalents | |
oval = oval.replace(/[\u0080]/g,'\u20AC'); //euro sign | |
oval = oval.replace(/[\u0082]/g,'\u201A'); //single low-9 quotation mark | |
oval = oval.replace(/[\u0083]/g,'\u0192'); //florin currency symbol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function rtfXmlFormat(str){ | |
// Format the following Predefined XML Entities for RTF usage in XML | |
// " " \u0034 | |
// & & \u0038 | |
// ' ' \u0039 | |
// < < \u0060 | |
// > > \u0062 | |
// { \u0123 | |
// } \u0125 |