开发者

Prevent & from showing up html

开发者 https://www.devze.com 2023-01-18 04:10 出处:网络
On my html document for some reason instead of printing what it\'s suppose to be, it\'s just displaying

On my html document for some reason instead of printing what it's suppose to be, it's just displaying

&开发者_Python百科amp;amp;

encoding is utf-8

any ideas?

Thanks


That's the entity code for a ampersand - which is why it's actually displaying as &. Just add amp to the end to actually show it.

&

Which will '&' in an HTML document.

0

精彩评论

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