diff options
author | Brian Anderson <andersrb@gmail.com> | 2015-09-21 12:41:18 -0700 |
---|---|---|
committer | Brian Anderson <andersrb@gmail.com> | 2015-09-21 12:41:18 -0700 |
commit | 49c64b3cb5999cad0118fa5cb0cc60f5fcc70493 (patch) | |
tree | dd136dcea4700b26582bcd950ccacf1f19c2dd86 /src/escape.h | |
parent | 794d91b37020242446c53713c7ce0c09b33b5f0c (diff) | |
parent | ca4609d56a77378ef9cf6dd3caff3aec006ecce9 (diff) | |
download | rust-hoedown-master.tar.gz |
Upgrade hoedown to 3.0.5.
Diffstat (limited to 'src/escape.h')
-rw-r--r-- | src/escape.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/escape.h b/src/escape.h index 95be860..d7659c2 100644 --- a/src/escape.h +++ b/src/escape.h @@ -9,8 +9,17 @@ extern "C" { #endif -extern void hoedown_escape_html(hoedown_buffer *ob, const uint8_t *src, size_t size, int secure); -extern void hoedown_escape_href(hoedown_buffer *ob, const uint8_t *src, size_t size); + +/************* + * FUNCTIONS * + *************/ + +/* hoedown_escape_href: escape (part of) a URL inside HTML */ +void hoedown_escape_href(hoedown_buffer *ob, const uint8_t *data, size_t size); + +/* hoedown_escape_html: escape HTML */ +void hoedown_escape_html(hoedown_buffer *ob, const uint8_t *data, size_t size, int secure); + #ifdef __cplusplus } |