html.to_string
html.to_string
Function
Returns the current HTML raw text.
Syntax
html(text).to_string()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | The current HTML text. |
Code Example
result = html('<div>BT</div>').to_string() // Output: <div>BT</div> print result
Notes
- to_string does not escape or sanitize text.