Template:Strip whitespace: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
(No difference)
|
Revision as of 19:36, 2 June 2022
This documentation is transcluded from Template:Strip whitespace/doc. Changes can be proposed in the talk page.
This template removes all whitespace in a string.
Usage
{{strip whitespace|text}}
= text with any whitespace removed.
Examples
- "
{{strip whitespace|Carrack is the best}}
" produces "Carrackisthebest" - "
{{strip whitespace|Carrack nice}}
" produces "Carracknice" - "
{{strip whitespace|Best ship in the verse is Carrack}}
" produces "BestshipintheverseisCarrack"
See also
- {{Trim}} - used to remove leading and trailing whitespace