html和英镑符号中的撇号问题 [英] Issue with apostrophes in html and pound symbols

查看:310
本文介绍了html和英镑符号中的撇号问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我收到的一些电子邮件和网页设计在文本中有'而不是'。



是否有任何类型的软件或在线脚本转换这些符号(以及£符号)到HTML兼容文本?

解决方案

需要将您的文本转换为html字符,然后将其放入您的电子邮件html。这是从MS Word导入时常见的问题,因为它使用的字符像卷曲报价,hellips和mdash需要先转换。



有一大堆转换器在这里有3个:





以下是在MS Word中编写的内容示例:

 你好吗?他说到它。等待 - 我没有完成... 

这将转换为:

 & ldquo; Hello?& rdquo;他说& lsquo; it& rsquo ;.等待–我没有完成… 

您应该在电子邮件中使用转换的版本,或者您可能会懒惰,在你的代码中用直线引起的。语法在技术上不准确,但大多数人不介意。


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 manually catch them all.

Is there any type of software or online script that converts these symbols (along with the £ sign) to HTML compatible text? Would notepad or anything work?

I

解决方案

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:

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.

这篇关于html和英镑符号中的撇号问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆