开发者

HTML entity codes and server showing & instead of &

开发者 https://www.devze.com 2023-02-16 11:33 出处:网络
I\'m trying to get a copyright symbol to show up and I\'m using the entity code © Problem is it\'s showing up as \"©\" instead of the copyright symbol.When I firebug the code it\'

I'm trying to get a copyright symbol to show up and I'm using the entity code

©

Problem is it's showing up as " ©" instead of the copyright symbol. When I firebug the code it's showing ©

Is there some reason why it's making the & symbol show up as & and how to prevent th开发者_运维知识库is?


Wherever it is you're typing in ©, you must be typing it into a tool that's then helpfully encoding that for you (turning & into &). You haven't given us any information to work with about what tool might be doing that, so we can't help, but if you put the characters © in the actual HTML source of a page, when rendered it will come out as a copyright symbol. (Except inside the title element, but you won't see the encoded version there, so I know that's not what's going on.) This is an issue with the tools you're using.


Something is re-encoding again your sentence... this is a double HTML encoding

Try to put the character (R) right away, it will be encoded for you apparently

How does this append in your case we don't have enough details

thanks


You want your html to look something like the following:

<div>&copy; 2011, Bob Cravens</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消