1 /* escape.h - escape utilities */
2 
3 #ifndef HOEDOWN_ESCAPE_H
4 #define HOEDOWN_ESCAPE_H
5 
6 #include "buffer.h"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*************
14  * FUNCTIONS *
15  *************/
16 
17 /* hoedown_escape_href: escape (part of) a URL inside HTML */
18 void hoedown_escape_href(hoedown_buffer *ob, const uint8_t *data, size_t size);
19 
20 /* hoedown_escape_html: escape HTML */
21 void hoedown_escape_html(hoedown_buffer *ob, const uint8_t *data, size_t size, int secure);
22 
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /** HOEDOWN_ESCAPE_H **/
29