Template:Trim/doc
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.