This article needs a technical review. How you can help.
This article covers features introduced in SpiderMonkey 1.8.5
Write string into file with escaping.
bool JS_FileEscapedString(FILE *fp, JSString *str, char quote);
||A file pointer to write into.|
||A string to write into the file.|
||One of 0, single quote, and double quote.|
str into file
fp escaping any non-printable or non-ASCII character. If quote is not 0, it must be a single or double quote character that will quote the output.