1 /* 2 * Copyright 2001-2004 Brandon Long 3 * All Rights Reserved. 4 * 5 * ClearSilver Templating System 6 * 7 * This code is made available under the terms of the ClearSilver License. 8 * http://www.clearsilver.net/license.hdf 9 * 10 */ 11 12 #ifndef __HTML_H_ 13 #define __HTML_H_ 1 14 15 #include <stdarg.h> 16 #include "util/neo_err.h" 17 #include "util/neo_hdf.h" 18 19 __BEGIN_DECLS 20 21 typedef struct _text_html_opts { 22 const char *bounce_url; 23 const char *url_class; 24 const char *url_target; 25 const char *mailto_class; 26 int long_lines; 27 int space_convert; 28 int newlines_convert; 29 int longline_width; 30 int check_ascii_art; 31 const char *link_name; 32 } HTML_CONVERT_OPTS; 33 34 NEOERR *convert_text_html_alloc (const char *src, int slen, char **out); 35 NEOERR *convert_text_html_alloc_options (const char *src, int slen, 36 char **out, 37 HTML_CONVERT_OPTS *opts); 38 NEOERR *html_escape_alloc (const char *src, int slen, char **out); 39 NEOERR *html_strip_alloc(const char *src, int slen, char **out); 40 41 __END_DECLS 42 43 #endif /* __HTML_H_ */ 44