Skip to content

Commit

Permalink
Rename houdini_escape_html0 -> houdini_escape_html.
Browse files Browse the repository at this point in the history
See #536.
  • Loading branch information
jgm committed Mar 25, 2024
1 parent c91ced1 commit c184133
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/houdini.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/houdini_html_e.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c184133

Please sign in to comment.