esc() 공개 정적인 메소드

Escape UTF-8 strings
public static esc ( string $string ) : string
$string string
리턴 string
예제 #1
0
파일: Filter.php 프로젝트: jbzoo/utils
 /**
  * @param $string
  * @return string
  */
 public static function esc($string)
 {
     return Str::esc($string);
 }
예제 #2
0
파일: StringTest.php 프로젝트: jbzoo/utils
 public function testEsc()
 {
     isSame('&lt;a href="/test"&gt;Test !@#$%^&amp;*()_+\\/&lt;/a&gt;', Str::esc('<a href="/test">Test !@#$%^&*()_+\\/</a>'));
 }