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.
Dashes (Score:2)
The HTML/XHTML entities are
—and–, not and [XHTML spec [w3.org]]. 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 (Score:1)
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.
-- Godoy.