plainText
Syntax | plainText(html/xml) | Package | |
Alias | Pkg Usage |
Description
Routine strips all HTML/XML markup from a passed string and returns a clean, plain-text version.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
html/xml | String | Yes | The text itself, which may contain HTML or XML markup. |
Return Type
String
Example
string html = "<p>Some text</p>";
string plain = plainText(html);
print(plain);