You are here: Foswiki>System Web>Category>UserDocumentationCategory>FormattedSearch>FormatTokens (2024-12-23, UnknownUser)Edit Attach
Foswiki defines some standard special tokens that can be used to replace characters in some parameters - notably those to FormattedSearch and IfStatements - to defer evaluation of the parameter until later. These special tokens are often called "escapes", because they allow the character to "escape" from its normal meaning.
| $nor$n() | New line. Use $n()if followed by alphanumeric character, e.g. writeFoo$n()Barinstead ofFoo$nBar
 
 | 
| $nopor$nop() | Is a "no operation". This token gets removed; useful for nested search | 
| $quot | Double quote ( ") (\" also works) | 
| $percent | Percent sign ( %) ($percntalso works) | 
| $dollar | Dollar sign ( $) | 
| $lt | Less than sign ( <) | 
| $gt | Greater than sign ( >) | 
| $amp | Ampersand ( &) | 
| $comma | Comma ( ,) | 
 If you ever find yourself needing to escape an escape, you can use $dollar to escape the leading dollar, thus: $dollarpercent. 
Click the buttons below to escape or unescape the sample text.
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
  Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Copyright © by the contributing authors. All material on this site is the property of the contributing authors. 
 Ideas, requests, problems regarding Foswiki? Send feedback