diff --git a/src/houdini.h b/src/houdini.h index cc688adfb..69d4fec95 100644 --- a/src/houdini.h +++ b/src/houdini.h @@ -25,7 +25,7 @@ extern "C" { bufsize_t houdini_unescape_ent(cmark_strbuf *ob, const uint8_t *src, bufsize_t size); -int houdini_escape_html0(cmark_strbuf *ob, const uint8_t *src, +int houdini_escape_html(cmark_strbuf *ob, const uint8_t *src, bufsize_t size, int secure); int houdini_unescape_html(cmark_strbuf *ob, const uint8_t *src, bufsize_t size); diff --git a/src/houdini_html_e.c b/src/houdini_html_e.c index 65578fd9c..111bc1374 100644 --- a/src/houdini_html_e.c +++ b/src/houdini_html_e.c @@ -43,7 +43,7 @@ static const char HTML_ESCAPE_TABLE[] = { static const char *HTML_ESCAPES[] = {"", """, "&", "'", "/", "<", ">"}; -int houdini_escape_html0(cmark_strbuf *ob, const uint8_t *src, bufsize_t size, +int houdini_escape_html(cmark_strbuf *ob, const uint8_t *src, bufsize_t size, int secure) { bufsize_t i = 0, org, esc = 0; diff --git a/src/html.c b/src/html.c index 178c2cc87..5c14fa6f8 100644 --- a/src/html.c +++ b/src/html.c @@ -17,7 +17,7 @@ static void escape_html(cmark_strbuf *dest, const unsigned char *source, bufsize_t length) { - houdini_escape_html0(dest, source, length, 0); + houdini_escape_html(dest, source, length, 0); } static inline void cr(cmark_strbuf *html) {