mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Added html_encode ()
This commit is contained in:
parent
45d28847c8
commit
a16f958a22
@ -159,6 +159,18 @@ function string_decode ($string, $return)
|
||||
return (eor ($rstring, $return));
|
||||
}
|
||||
|
||||
###
|
||||
# HTML encode a string
|
||||
# This should be used with anything in an HTML tag that might contain < or >
|
||||
###
|
||||
|
||||
function html_encode ($string, $return)
|
||||
{
|
||||
$rstring = htmlspecialchars ($string);
|
||||
|
||||
return (eor ($rstring, $return));
|
||||
}
|
||||
|
||||
function translate ($text)
|
||||
{
|
||||
global $phpgw;
|
||||
|
Loading…
Reference in New Issue
Block a user