Function __global->escape_html_tempcode
Definitions
sources/tempcode.php
- Escape certain special characters in the provided string/Tempcode, so that it can be embedded as text within HTML.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $data | mixed | No | No | required parameter | N/A | N/A | Plain-text string |
Returns
- HTML string
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Escape certain special characters in the provided string/Tempcode, so that it can be embedded as text within HTML.
*
* @param mixed $data Plain-text string
* @return Tempcode HTML string
*/
function escape_html_tempcode($data) : object
* Escape certain special characters in the provided string/Tempcode, so that it can be embedded as text within HTML.
*
* @param mixed $data Plain-text string
* @return Tempcode HTML string
*/
function escape_html_tempcode($data) : object

