[Mediawiki-l] how to show a nsbp

Fernando Correia fernandoacorreia at gmail.com
Fri Mar 2 17:47:23 UTC 2007


How can I show a " " in source code? If I try something like
this, the "nbsp" is not shown; a whitespace is shown instead.

<pre><nowiki>
test = "&nbsp;"
</nowiki></pre>

<pre>
test = "&nbsp;"
</pre>

Results:

test = " "

test = " "

Obviously the "&nbsp;" is being interpreted as a HTML char; maybe the
"pre" tag should html-encode it.



More information about the MediaWiki-l mailing list