]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
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 999a183c57e6ba9d9cc5eb1e738e4cd56ff22d99..02b91d6360f2932c55e194b1926f2bd2f94ce453 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;