简体   繁体   English

是否有类似'的东西?

[英]Is there something like &nbsp for '?

The system I'm using has a bug dealing with ' ,is there a html format for ' ? 我使用该系统有一个处理一个错误'是有一个HTML格式'

Is there a PHP function to look up this ? 是否有PHP函数可以对此进行查询?

There is ' ' .

Take a look at the HTML page on these codes. 看一下这些代码HTML页面。

htmlentities ($string, ENT_QUOTES);

’ for ' and ‘ 代表“和‘ for '

Found from here 从这里找到

Try this: 尝试这个:

'

See it in action (not much to look at): ' 实际操作中看(没什么要看的):'

只是作为参考: http : //www.asciitable.com/总是很好的帮助:)

Here is a reference chart for html special characters: 这是html特殊字符的参考表:

http://www.mindflip.com/inet/web/htmlchars.html http://www.mindflip.com/inet/web/htmlchars.html

You can try ' 您可以尝试' or ‘ ‘ for a quote. 报价。

您还可以使用'

Character   Entity Number     Entity Name         Description

   "         "                "          quotation mark

   '         '                '          apostrophe(does not work in IE)  

   &         &                &           ampersand

   <         &#60;                &lt;            less-than

   >         &#62;                &gt;            greater-than

htmlentities ()呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM