escinput andh eschtml utility functions added
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 27 Jan 2011 07:33:08 +0000 (08:33 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 27 Jan 2011 07:33:08 +0000 (08:33 +0100)
web/Obj/brisk.phh

index 999a183..02b91d6 100644 (file)
@@ -278,6 +278,22 @@ Copyright 2006-2009 <a href=\\"mailto:brisk@alternativeoutput.it\\">Matteo Nasta
 Copyright 2006-2009 <a href=\\"mailto:brisk@alternativeoutput.it\\">Matteo Nastasi</a> (aka mop)<br><br>');
 
 
+$escinp_from = array( "\""     );
+$escinp_to = array(   "&quot;" );
+
+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;