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
hyphen‐U+2010 ‐ ‐‐ ‐
‐ ‐
Figure dash‒U+2012 ‒ ‒
En dash–U+2013 – –– –
Em dash—U+2014 — —— —
Horizontal bar―U+2015 ― ―― ―
minus sign−U+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”


  1. And this is why I write all my blog post in the raw HTML. These WYSIWYG editors are really bad at this and lots of other things besides.

Leave a Reply