Stringy\Stringy::htmlDecode PHP Méthode

htmlDecode() public méthode

Convert all HTML entities to their applicable characters. An alias of html_entity_decode. For a list of flags, refer to http://php.net/manual/en/function.html-entity-decode.php
public htmlDecode ( integer | null $flags = ENT_COMPAT ) : Stringy
$flags integer | null Optional flags
Résultat Stringy Object with the resulting $str after being html decoded.
    public function htmlDecode($flags = ENT_COMPAT)
    {
        $str = html_entity_decode($this->str, $flags, $this->encoding);
        return static::create($str, $this->encoding);
    }