Template:Trim
Jump to navigation
Jump to search
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter.
Note: Pipe characters (|
) must be escaped as {{!}}
or {{pipe}}
, and equals signs must be escaped as {{=}}
(those inside tags may need to be escaped as well, e.g. <div style{{=}}"...">
), except for ones inside <nowiki>
, <pre>
, <math>
, and <syntaxhighlight>
tags.
The above documentation is transcluded from Template:Trim/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |