Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

godoy (2167)

godoy
  (email not shown publicly)
http://www.g2ctech.com/
AOL IM: godoy0 (Add Buddy, Send Message)
Yahoo! ID: jgodoyf (Add User, Send Message)
Jabber: godoy@jabber.org

Never doubt how stupid people can be.

Journal of godoy (2167)

Saturday March 15, 2003
06:42 AM

Use of &em; and &en; for emdashes and endashes.

[ #11041 ]

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 Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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 –
    • 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.

      --
      -- Godoy.