diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-26 14:26:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-26 14:26:43 +0000 |
commit | f7b4fd2979e3a47c854638e4289883ba15e07705 (patch) | |
tree | bc82e0fd786e4c85bae57e93fd353c627e219bfd /libs/web/src/template_utils.h | |
parent | e2f3b8923d2771245082a93d170699828c8d7107 (diff) |
libs/web: various changes in template library
- rename sanitize_pcdata() and sanitize_utf8() to pcdata() and utf8()
- implement striptags()
Diffstat (limited to 'libs/web/src/template_utils.h')
-rw-r--r-- | libs/web/src/template_utils.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/web/src/template_utils.h b/libs/web/src/template_utils.h index 1683a3ee1..c54af757c 100644 --- a/libs/web/src/template_utils.h +++ b/libs/web/src/template_utils.h @@ -39,10 +39,11 @@ int buf_append(struct template_buffer *buf, const char *s, int len); int buf_length(struct template_buffer *buf); char * buf_destroy(struct template_buffer *buf); -char * sanitize_utf8(const char *s, unsigned int l); -char * sanitize_pcdata(const char *s, unsigned int l); +char * utf8(const char *s, unsigned int l); +char * pcdata(const char *s, unsigned int l); +char * striptags(const char *s, unsigned int l); -void escape_luastr(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); -void translate_luastr(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); +void luastr_escape(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); +void luastr_translate(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); #endif |