mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-16 10:14:05 +02:00
Update htmlEncode and htmlDecode docs
This commit is contained in:
@@ -393,7 +393,9 @@ s('fòô bàř')->hasUpperCase(); // false
|
|||||||
|
|
||||||
##### htmlDecode()
|
##### htmlDecode()
|
||||||
|
|
||||||
Convert all HTML entities to their applicable characters.
|
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
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('&')->htmlDecode(); // '&'
|
s('&')->htmlDecode(); // '&'
|
||||||
@@ -401,7 +403,9 @@ s('&')->htmlDecode(); // '&'
|
|||||||
|
|
||||||
##### htmlEncode()
|
##### htmlEncode()
|
||||||
|
|
||||||
Convert all applicable characters to HTML entities.
|
Convert all applicable characters to HTML entities. An alias of
|
||||||
|
htmlentities. Refer to http://php.net/manual/en/function.htmlentities.php
|
||||||
|
for a list of flags.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('&')->htmlEncode(); // '&'
|
s('&')->htmlEncode(); // '&'
|
||||||
|
@@ -1704,9 +1704,11 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert all applicable characters to HTML entities.
|
* Convert all applicable characters to HTML entities. An alias of
|
||||||
|
* htmlentities. Refer to http://php.net/manual/en/function.htmlentities.php
|
||||||
|
* for a list of flags.
|
||||||
*
|
*
|
||||||
* @param int|null $flags See http://php.net/manual/en/function.htmlentities.php
|
* @param int|null $flags Optional flags
|
||||||
* @return Stringy Object with the resulting $str after being html encoded.
|
* @return Stringy Object with the resulting $str after being html encoded.
|
||||||
*/
|
*/
|
||||||
public function htmlEncode($flags = ENT_COMPAT)
|
public function htmlEncode($flags = ENT_COMPAT)
|
||||||
@@ -1717,9 +1719,11 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert all HTML entities to their applicable characters.
|
* 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
|
||||||
*
|
*
|
||||||
* @param int|null $flags See http://php.net/manual/en/function.html-entity-decode.php
|
* @param int|null $flags Optional flags
|
||||||
* @return Stringy Object with the resulting $str after being html decoded.
|
* @return Stringy Object with the resulting $str after being html decoded.
|
||||||
*/
|
*/
|
||||||
public function htmlDecode($flags = ENT_COMPAT)
|
public function htmlDecode($flags = ENT_COMPAT)
|
||||||
|
Reference in New Issue
Block a user