How can I trick a trimming function not to remove whitespace at the end of a string?

  would normally do fine but my strings are long, so I do want them to break.

Is there no html entity for whitespace?

This is not a specific coding language question (it's complicated).

It's for MediaWiki and I want to replace underscores with normal whitespace: {{#replace:Foo_Bar.png|_| }}

Edit: Solution:  

有帮助吗?

解决方案

{{#replace:Foo_Bar.png|_|<nowiki> </nowiki>}}     (documentation)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top