src/Primitive/String/String.php
public function fromEntities($entities = null, $flags = ENT_QUOTES, $encoding = 'UTF-8')
    {
        if ( ! is_null($entities))
        {
            $this->string = html_entity_decode(
                $this->retrieveValue($entities), $flags, $this->retrieveValue($encoding)
            );

            return $this;
        }

        return new static(html_entity_decode($this->string, $flags, $this->retrieveValue($encoding)));
    }
public function fromEntities($entities = null, $flags = ENT_QUOTES, $encoding = 'UTF-8')
    {
        if ( ! is_null($entities))
        {
            $this->string = html_entity_decode(
                $this->retrieveValue($entities), $flags, $this->retrieveValue($encoding)
            );

            return $this;
        }

        return new static(html_entity_decode($this->string, $flags, $this->retrieveValue($encoding)));
    }
Convert all HTML entities to their applicable characters.
First optional argument can be specified to decode and construct from $entities.

@param string|StringContract|null $entities
@param int $flags
@param string|StringContract $encoding
@return $this