Forum Moderators: coopster

Message Too Old, No Replies

htmlspecialchars make from "-" &8212

         

orion_rus

7:11 pm on Feb 4, 2005 (gmt 0)

10+ Year Member



May be somebody faces this bug and can help me to remove it?

ergophobe

8:25 pm on Feb 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm not sure what you mean. Do you mean that you want hyphens to be em-dashes in the typographically appropriate spots -- for parenthetical expressions for example -- or that you want existing em-dashes to be encoded as entities?

hyphen = -
em-dash - —

A similar question just came up, but basically you should just be able to do a search and replace in the source text and replace every occurrence of an em-dash with a #8212. If you want to replace hyphens with em-dashes, that's more complex.