@@ -236,8 +236,8 @@ APR_DECLARE(const char *) apr_pescape_urlencoded(apr_pool_t *p,
236236
237237/**
238238 * Apply entity encoding to a string. Characters are replaced as follows:
239- * '<' becomes '<', '>' becomes '>', '&' becomes '&', the
240- * double quote becomes '"" and the single quote becomes '''.
239+ * '<' becomes '\ <', '>' becomes '\ >', '&' becomes '\ &', the
240+ * double quote becomes '\ "" and the single quote becomes '\ ''.
241241 *
242242 * If toasc is not zero, any non ascii character will be encoded as
243243 * '%\#ddd;', where ddd is the decimal code of the character.
@@ -255,9 +255,9 @@ APR_DECLARE(apr_status_t) apr_escape_entity(char *escaped, const char *str,
255255
256256/**
257257 * Apply entity encoding to a string, returning the result from a pool.
258- * Characters are replaced as follows: '<' becomes '<', '>' becomes
259- * '>', '&' becomes '&', the double quote becomes '"" and the
260- * single quote becomes '''.
258+ * Characters are replaced as follows: '<' becomes '\ <', '>' becomes
259+ * '\ >', '&' becomes '\ &', the double quote becomes '\ "" and the
260+ * single quote becomes '\ ''.
261261 * @param p Pool to allocate from
262262 * @param str The original string
263263 * @param toasc If non zero, encode non ascii characters
0 commit comments