mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
20 lines
516 B
Plaintext
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.
|