added functions for printing escaped and unescaped values
This commit is contained in:
parent
fe6b987b3d
commit
bf3dac05d1
|
@ -21,6 +21,22 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prints an XSS escaped string
|
||||
* @param string $string the string which will be escaped and printed
|
||||
*/
|
||||
function p($string){
|
||||
print(OC_Util::sanitizeHTML($string));
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints an unescaped string
|
||||
* @param string $string the string which will be printed as it is
|
||||
*/
|
||||
function print_unescaped($string){
|
||||
print($string);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief make OC_Helper::linkTo available as a simple function
|
||||
* @param string $app app
|
||||
|
|
Loading…
Reference in New Issue