When I was looking after some DocBook stuff, almost two years ago, I've found out that several browsers won't show &em; properly (Mozilla won't show it up correctly). I'd really like something that can be correctly seen on a big amount of browsers that I can use as an emdash.
What are you using? I'm sticking with the (horrible) '---' string.
The HTML/XHTML entities are —
and –
, not and [XHTML spec]. But for better browser support, you might want to use —
and –
instead.
Test:
—
is displayed as —–
is displayed as –—
is displayed as —–
is displayed as –Re:Dashes
godoy on 2003-03-17T13:01:54
Thanks.
I must have missed it when I read the HTML DTD looking for it...
The entities are the same for HTML 4.01, but as you suggested, I used the numeric codes.