Function: to_text

Function: to_text

Usage

 to_text(some_tagged_text)

Convert a tagged string to a normal string by removing all tags and restoring escaped < characters.

Parameters

Parameter Type Description
input tagged string String to convert to text

Examples

 to_text("<b>bold text</b>") == "bold text"
 to_text("1 \< 2") == "1 < 2"

See also

to_html Convert tagged text to html.
remove_tags Remove all tags from tagged text.