summaryrefslogtreecommitdiffstats
path: root/depends/hoedown/hoedown/escape.h
diff options
context:
space:
mode:
Diffstat (limited to 'depends/hoedown/hoedown/escape.h')
-rw-r--r--depends/hoedown/hoedown/escape.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/depends/hoedown/hoedown/escape.h b/depends/hoedown/hoedown/escape.h
new file mode 100644
index 00000000..d7659c27
--- /dev/null
+++ b/depends/hoedown/hoedown/escape.h
@@ -0,0 +1,28 @@
+/* escape.h - escape utilities */
+
+#ifndef HOEDOWN_ESCAPE_H
+#define HOEDOWN_ESCAPE_H
+
+#include "buffer.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*************
+ * 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
+}
+#endif
+
+#endif /** HOEDOWN_ESCAPE_H **/