mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
20 lines
430 B
C
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.
|
|
*
|
|
* " => "
|
|
* & => &
|
|
* ' => '
|
|
* < => <
|
|
* > => >
|
|
*
|
|
* @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
|