From c184133a1985835cc4c21d74820e603d09d008f9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 25 Mar 2024 09:03:49 -0700 Subject: [PATCH] Rename `houdini_escape_html0` -> `houdini_escape_html`. See #536. --- src/houdini.h | 2 +- src/houdini_html_e.c | 2 +- src/html.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {