Files
MagicSetEditor2/doc/function/to_text.txt
T

20 lines
516 B
Plaintext

Function: to_text
--Usage--
> to_text(some_tagged_text)
Convert a [[type:tagged string]] to a normal string by removing all tags and restoring escaped < characters.
--Parameters--
! Parameter Type Description
| @input@ [[type:tagged string]] String to convert to text
--Examples--
> to_text("<b>bold text</b>") == "bold text"
> to_text("1 \< 2") == "1 < 2"
--See also--
| [[fun:to_html]] Convert [[type:tagged text]] to html.
| [[fun:remove_tags]] Remove all tags from tagged text.