WordPress lost my dash dash – it is too clever

I had documented some Unix-like commands, of the format dash dash help, but these were displayed like strange dash help, and so if I searched for the text, it was not found. If I copied it – and user id, it was not valid!

A dash is not that simple, there is

characterUnicode (hexadecimal)HTML entity
hyphenU+2010 ‐
‐
Figure dashU+2012
En dashU+2013 –
Em dashU+2014 —
Horizontal barU+2015 ―
minus signU+2212 −

The solution

You can use

and the text comes out like --help. If you do this, the text is searchable in the formatted page in a browser

I now have to go through all my pages and make the change!

One thought on “WordPress lost my dash dash – it is too clever

Leave a comment