mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-30 15:47:12 +01:00
29 lines
532 B
C++
29 lines
532 B
C++
|
/* 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 **/
|