Template:Trim2/doc
From Elwiki
Overview
A quick template that gets rid of line breaks of the input string.
Usage
{{trim2| Lorem ipsum dolor sit amet.}}
Result: Lorem ipsum dolor sit amet.
Also, rips whitespace from the end and the beginning like Template:Trim.