From: Matteo Nastasi (mop) Date: Thu, 27 Jan 2011 07:33:08 +0000 (+0100) Subject: escinput andh eschtml utility functions added X-Git-Tag: 3.1.0~23 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=30aa38786951145d916b6a4e1db0b01946e02c6b;p=brisk.git escinput andh eschtml utility functions added --- 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;