From 30aa38786951145d916b6a4e1db0b01946e02c6b Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 27 Jan 2011 08:33:08 +0100 Subject: [PATCH] escinput andh eschtml utility functions added --- web/Obj/brisk.phh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 999a183..02b91d6 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -278,6 +278,22 @@ Copyright 2006-2009 Matteo Nasta Copyright 2006-2009 Matteo Nastasi (aka mop)

'); +$escinp_from = array( "\"" ); +$escinp_to = array( """ ); + +function escinput($s) +{ + GLOBAL $escinp_from, $escinp_to; + + return str_replace($escinp_from, $escinp_to, $s); +} + +function eschtml($s) +{ + return htmlentities($s); +} + + function langtolng($lang) { GLOBAL $G_lang; -- 2.17.1