Function __global->strip_tags
Definitions
sources_custom/phpstub.php
- Strip HTML and PHP tags from a 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 |
|---|---|---|---|---|---|---|---|
| $str | string | No | No | required parameter | N/A | N/A | Subject |
| $allowed_tags | string | No | No | Blank (empty string) | N/A | N/A | Tags that should not be stripped (blank: strip all tags) |
Returns
- Result
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Strip HTML and PHP tags from a string.
*
* @param string $str Subject
* @param string $allowed_tags Tags that should not be stripped (blank: strip all tags)
* @return string Result
*/
function strip_tags(string $str, string $allowed_tags = '') : string
* Strip HTML and PHP tags from a string.
*
* @param string $str Subject
* @param string $allowed_tags Tags that should not be stripped (blank: strip all tags)
* @return string Result
*/
function strip_tags(string $str, string $allowed_tags = '') : string

