How To Add Double-Dash / Hyphen in WordPress

By Angsuman Chakraborty, Gaea News Network
Tuesday, June 12, 2007

WordPress in its infinite wisdom consumes one dash ( - ) and converts the other when there are two consecutive dashes like this: --. The solution is to use - twice instead of dash. - is the HTML escape sequence for a dash or hyphen or minus sign.

This ASCII character is a generic, multipurpose character, and one can say that in ASCII hyphen and minus are identical. But in Unicode, there are distinct characters named “hyphen” and “minus sign” (as well as different dash characters). For compatibility, the old ASCII character is preserved in Unicode, too (in the old code position, with the name hyphen-minus).

Discussion

InterestedParty
January 18, 2010: 9:28 pm

Your trick didn’t work for leaving a comment at another website. I wanted to point out that a command needed to include a double dash before an option, but I could not figure out how to make that double dash properly display in my comment. &#45&#45 –

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :