From::HTML()
Encodes HTML special characters.
Table of Contents
Description
From::HTML(?string $value, bool $deep = false): ?string;This method encodes HTML special characters so that the result will be safe to use inside HTML attribute value or in <textarea> element content.
Example
$value = From::HTML('<foo bar="baz">'); // Returns `'<foo bar="baz">'`From::HTML()
Encodes HTML special characters.
From::JSON()
Decodes JSON string to data.
From::URL()
Encodes URL special characters.
From::_()
Creates a virtual method.
From::__callStatic()
Calls the virtual method that has been created.
From::base64()
Decodes Base64 string.
From::entity()
Converts HTML entities to their corresponding characters.
From::query()
Converts URL query string to PHP array.
From::serial()
Unserializes data.