appwrite/src/Appwrite/Utopia/View.php

23 lines
403 B
PHP
Raw Normal View History

2021-12-14 09:11:34 +00:00
<?php
namespace Appwrite\Utopia;
use Utopia\View as OldView;
class View extends OldView
{
/**
* Escape
*
* Convert all applicable characters to HTML entities
*
* @param string $str
* @return string
* @deprecated Use print method with escape filter
*/
public function escape($str)
{
return \htmlentities($str, ENT_QUOTES, 'UTF-8');
}
2022-05-23 14:54:50 +00:00
}