Function __global->code_editor_escape_html
Definitions
code_editor.php
- Escape HTML text. Heavily optimised! Ended up with preg_replace after trying lots of things.
- 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 | LONG_TEXT | No | No | required parameter | N/A | N/A | The text to escape |
Returns
- The escaped result
- Type: LONG_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Escape HTML text. Heavily optimised! Ended up with preg_replace after trying lots of things.
*
* @param LONG_TEXT $string The text to escape
* @return LONG_TEXT The escaped result
*/
function code_editor_escape_html(string $string) : string
* Escape HTML text. Heavily optimised! Ended up with preg_replace after trying lots of things.
*
* @param LONG_TEXT $string The text to escape
* @return LONG_TEXT The escaped result
*/
function code_editor_escape_html(string $string) : string

