src/inc/cheapcgi.h 1.69
1.69 2009/12/09 19:24:35 galt
added new func javaScriptLiteralEncode
Index: src/inc/cheapcgi.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/cheapcgi.h,v
retrieving revision 1.68
retrieving revision 1.69
diff -b -B -U 4 -r1.68 -r1.69
--- src/inc/cheapcgi.h 9 Dec 2009 03:36:59 -0000 1.68
+++ src/inc/cheapcgi.h 9 Dec 2009 19:24:35 -0000 1.69
@@ -416,5 +416,12 @@
void commonCssStyles();
/* Defines a few common styles to use through CSS */
+char *javaScriptLiteralEncode(char *inString);
+/* Use backslash escaping on newline *
+ * and quote chars, backslash and others. *
+ * Intended that the encoded string will be *
+ * put between quotes at a higher level and *
+ * then interpreted by Javascript. */
+
#endif /* CHEAPCGI_H */