html.strip
html.strip
Function
Remove the HTML tags and keep the text outside the tags.
Syntax
html(text).strip()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | Text after removing tags. |
Code Example
result = html('<p>Hello <b>BT</b></p>').strip() // Output: Hello BT print result
Notes
- strip is a lightweight tag stripper, not a full HTML parser.