0 follower

Final Class Yiisoft\Html\NoEncode

InheritanceYiisoft\Html\NoEncode
ImplementsYiisoft\Html\NoEncodeStringableInterface

The NoEncode class is designed to wrap content that should not be encoded in HTML tags.

For example:

// The following will produce "<b><i>hello</i></b>"
echo Html:b(NoEncode::string('<i>hello</i>'));

Method Details

Hide inherited methods

__toString() public method

public string __toString ( )

                public function __toString(): string
{
    return $this->string;
}

            
string() public static method

public static self string ( string $value )
$value string

                public static function string(string $value): self
{
    return new self($value);
}