Function __global->xmlentities
Definitions
sources/xml.php
- XML escape the input string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $string | string | No | No | required parameter | N/A | N/A | Input string |
| $charset | ?string | No | No | Null | N/A | N/A | Charset (null: current) |
Returns
- Escaped version of input string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* XML escape the input string.
*
* @param string $string Input string
* @param ?string $charset Charset (null: current)
* @return string Escaped version of input string
*/
function xmlentities(string $string, ?string $charset = null) : string
* XML escape the input string.
*
* @param string $string Input string
* @param ?string $charset Charset (null: current)
* @return string Escaped version of input string
*/
function xmlentities(string $string, ?string $charset = null) : string

