1
0
Fork 0
mirror of synced 2024-06-30 20:21:16 +12:00
appwrite/src/Appwrite/Utopia/View.php

22 lines
402 B
PHP
Raw Normal View History

2021-12-14 22:11:34 +13: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');
}
}