str::unhtml PHP 메소드

unhtml() 정적인 공개 메소드

Removes all html tags and encoded chars from a string
static public unhtml ( string $string ) : string
$string string
리턴 string The html string
    static function unhtml($string)
    {
        $string = strip_tags($string);
        return html_entity_decode($string, ENT_COMPAT, 'utf-8');
    }

Usage Example

예제 #1
0
 public function testUnhtml()
 {
     $this->assertEquals($this->sample, str::unhtml('Super Äwesøme String'));
 }
All Usage Examples Of str::unhtml