@@ -223,8 +223,8 @@ APR_DECLARE(const char *) apr_pescape_urlencoded(apr_pool_t *p,
223223
224224/**
225225 * Apply entity encoding to a string. Characters are replaced as follows:
226- * '<' becomes '<', '>' becomes '>', '&' becomes '&', the
227- * double quote becomes '"" and the single quote becomes '''.
226+ * '<' becomes '\ <', '>' becomes '\ >', '&' becomes '\ &', the
227+ * double quote becomes '\ "" and the single quote becomes '\ ''.
228228 *
229229 * If toasc is not zero, any non ascii character will be encoded as
230230 * '%\#ddd;', where ddd is the decimal code of the character.
@@ -242,9 +242,9 @@ APR_DECLARE(apr_status_t) apr_escape_entity(char *escaped, const char *str,
242242
243243/**
244244 * Apply entity encoding to a string, returning the result from a pool.
245- * Characters are replaced as follows: '<' becomes '<', '>' becomes
246- * '>', '&' becomes '&', the double quote becomes '"" and the
247- * single quote becomes '''.
245+ * Characters are replaced as follows: '<' becomes '\ <', '>' becomes
246+ * '\ >', '&' becomes '\ &', the double quote becomes '\ "" and the
247+ * single quote becomes '\ ''.
248248 * @param p Pool to allocate from
249249 * @param str The original string
250250 * @param toasc If non zero, encode non ascii characters
0 commit comments