Do I really need to encode '&' as '&'?

后端 未结 15 1050
夕颜
夕颜 2020-11-22 15:10

I\'m using an \'&\' symbol with HTML5 and UTF-8 in my site\'s </code>. Google shows the ampersand fine on its SERPs, as do all the browse <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5408099190056760" data-ad-slot="7305827575" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="fly-panel detail-box" id="flyReply"> <fieldset class="layui-elem-field layui-field-title" style="text-align: center;"> <legend>15条回答</legend> </fieldset> <ul class="jieda" id="jieda"> <li data-id="111" class="jieda-daan"> <a name="item-1111111111"></a> <div class="detail-about detail-about-reply"> <a class="fly-avatar" href=""> <img src="https://www.e-learn.cn/qa/data/avatar/000/00/00/small_000000076.jpg" alt=" 眼角桃花 "> </a> <div class="fly-detail-user"> <a href="" class="fly-link"> <cite> 眼角桃花</cite> </a> <span>(楼主)</span> </div> <div class="detail-hits"> <span>2020-11-22 15:43</span> </div> </div> <div class="detail-body jieda-body photos"> <p> <p>Could you show us what your <code>title</code> actually is? When I submit</p> <pre><code><!DOCTYPE html> <html> <title>Dolce & Gabbana

am i allowed loose & mpersands?

to http://validator.w3.org/ - explicitly asking it to use the experimental HTML 5 mode - it has no complaints about the &s...

提交回复
热议问题