Issue with apostrophes in html and pound symbols

前端 未结 1 1148
梦如初夏
梦如初夏 2021-01-26 02:02

I have a problem, some email and web designs i receive have ’ instead of \' in the text. This creates problems with rendering on some email clients and it\'s difficult to manual

1条回答
  •  清酒与你
    2021-01-26 02:46

    You'll need to convert your text to html characters before putting it into your email html. This is a common issue when you import from MS Word, as it uses characters like curly quotes, hellips and mdashes that need converting first.

    There are a whole bunch of converters out there, here are 3:

    • Email on Acid
    • Web2Generators
    • Charset

    Here is an example of something written in MS Word:

    “Hello?” he said to ‘it’. Wait – I’m not finished…
    

    This converts to this:

    “Hello?” he said to ‘it’. Wait – I’m not finished…
    

    You should use the converted version in your email, or you could be lazy and just replace all instances of curly quotes with straight ones in your code. The grammar is not technically accurate, but most people will not mind.

    0 讨论(0)
提交回复
热议问题