1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/ext/haml/hescape.h
2021-06-07 22:17:13 -07:00

20 lines
430 B
C

#ifndef HESCAPE_H
#define HESCAPE_H
#include <sys/types.h>
/*
* Replace characters according to the following rules.
* Note that this function can handle only ASCII-compatible string.
*
* " => &quot;
* & => &amp;
* ' => &#39;
* < => &lt;
* > => &gt;
*
* @return size of dest. If it's larger than len, dest is required to be freed.
*/
extern size_t hesc_escape_html(char **dest, const char *src, size_t size);
#endif