src/json.cpp
/** Escapes quotation marks in given string. */
Escapes quotation marks in given string.
Escapes quotation marks in given string .
string_t escape(const string_t &x)
{
    return x
        .replace("\"", "&quot;")
        .replace("\'", "&#39;");
}
string_t escape ( const string_t & x ) { return x . replace ( " \" " , " " ) . replace ( " \' " , " " ) ; }
Escapes quotation marks in given string.
Escapes quotation marks in given string .