summaryrefslogtreecommitdiffhomepage
path: root/libs/web/src/template_parser.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-11-26 14:26:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-11-26 14:26:43 +0000
commitf7b4fd2979e3a47c854638e4289883ba15e07705 (patch)
treebc82e0fd786e4c85bae57e93fd353c627e219bfd /libs/web/src/template_parser.c
parente2f3b8923d2771245082a93d170699828c8d7107 (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_parser.c')
-rw-r--r--libs/web/src/template_parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/web/src/template_parser.c b/libs/web/src/template_parser.c
index 76fb5a7c99..6054451315 100644
--- a/libs/web/src/template_parser.c
+++ b/libs/web/src/template_parser.c
@@ -244,7 +244,7 @@ template_format_chunk(struct template_parser *parser, size_t *sz)
switch (c->type)
{
case T_TYPE_TEXT:
- escape_luastr(buf, c->s, c->e - c->s, 0);
+ luastr_escape(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_EXPR:
@@ -254,15 +254,15 @@ template_format_chunk(struct template_parser *parser, size_t *sz)
break;
case T_TYPE_INCLUDE:
- escape_luastr(buf, c->s, c->e - c->s, 0);
+ luastr_escape(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_I18N:
- translate_luastr(buf, c->s, c->e - c->s, 1);
+ luastr_translate(buf, c->s, c->e - c->s, 1);
break;
case T_TYPE_I18N_RAW:
- translate_luastr(buf, c->s, c->e - c->s, 0);
+ luastr_translate(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_CODE: