-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathhtml.h
41 lines (32 loc) · 1.46 KB
/
html.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
+----------------------------------------------------------------------+
| Author: Xingzhi Liu <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifndef __HTML_H
#define __HTML_H
#define MAX_HLIGHT_KW 8
#ifdef __cplusplus
extern "C"
{
#endif
void *html_filtertag_init(const char *reservetags,
const char *skiptags,
const char *reserveattrs,int maxtextsize,int xssfilter);
const char *html_filtertags(void *tags,const char *html,int htmllen,int codetype,int *sp);
void html_filtertag_free(void *tags);
char * html_findtagclosemark(char *tag_start_mark,int len,char **tagname_beg,char **tagname_end);
int html_filterjavascript(const char *input,int inlen,char *output,int outlen,int codetype);
int html_getimgsrc(const char *html,const char *prefix,char *buffer,int bufsize);
char *html_modifiedimgattr(const char *html,const char *alt,const char *title);
int html_highlight_position(char *page, int page_size,
char *kw[],
char *hl[],
char *pos[],
int kw_num,
char *hl_page, int hlpage_bufsize,
char *title, int title_bufsize);
#ifdef __cplusplus
}
#endif
#endif