Alias for htmlentities() with UTF-8 and flags ENT_COMPAT and ENT_SUBSTITUTE (ENT_IGNORE for php <= 5.3).
public static htmlEntities ( string $text ) : string | ||
$text | string | |
리턴 | string |
/** * @test */ public function shouldConvertEntitiesWithInvalidChars() { //given $string = quoted_printable_decode('po=B3=B9czenie'); //when $entities = Strings::htmlEntities($string); //then $this->assertNotEmpty($entities); }