API:stripTags
From MODx Wiki
API Function Definition:
stripTags
- Versions
- > 0.6.0 ?
- Return Values
- Success: stripped string
- Fail: null
- Data Type
- string
- Object Hierarchy
- DocumentParser
string stripTags(string $html[, string $allowed]);
Removes all HTML tags, TVs, snippets, settings, placeholders, and chunks from the given string. Optionally save $allowed HTML tags.
[edit]
Examples
[edit]
Related Functions
[edit]
Source Code
| File: | manager/includes/document.parser.class.inc.php |
|---|---|
| Line: | 2209 |
function stripTags($html, $allowed= "") { return $t; }
[edit]
