From f7b4fd2979e3a47c854638e4289883ba15e07705 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 26 Nov 2012 14:26:43 +0000 Subject: libs/web: various changes in template library - rename sanitize_pcdata() and sanitize_utf8() to pcdata() and utf8() - implement striptags() --- libs/web/src/template_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/web/src/template_parser.c') 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: -- cgit v1.2.3