Home
last modified time | relevance | path

Searched refs:escaped (Results 1 – 2 of 2) sorted by relevance

/libevent-2.1.12/test/
H A Dregress_http.c3882 char *escaped = NULL; in http_primitives() local
3885 escaped = evhttp_htmlescape("<script>"); in http_primitives()
3886 tt_assert(escaped); in http_primitives()
3887 tt_str_op(escaped, ==, "&lt;script&gt;"); in http_primitives()
3888 free(escaped); in http_primitives()
3890 escaped = evhttp_htmlescape("\"\'&"); in http_primitives()
3891 tt_assert(escaped); in http_primitives()
3892 tt_str_op(escaped, ==, "&quot;&#039;&amp;"); in http_primitives()
3903 if (escaped) in http_primitives()
3904 free(escaped); in http_primitives()
/libevent-2.1.12/
H A Dhttp.c232 html_replace(const char ch, const char **escaped) in html_replace() argument
236 *escaped = "&lt;"; in html_replace()
239 *escaped = "&gt;"; in html_replace()
242 *escaped = "&quot;"; in html_replace()
245 *escaped = "&#039;"; in html_replace()
248 *escaped = "&amp;"; in html_replace()