根据
spec的报价必须转义,即代替:
<iframe seamless sandBox srcdoc="<p>Yeah,you can see it <a href="/gallery?mode=cover&page=1">in my gallery</a>."></iframe>
我们应该使用:
<iframe seamless sandBox srcdoc="<p>Yeah,you can see it <a href="/gallery?mode=cover&amp;page=1">in my gallery</a>."></iframe>
但是在上面的例子中简单地使用单引号是不行的:
<iframe seamless sandBox srcdoc="<p>Yeah,you can see it <a href='/gallery?mode=cover&page=1'>in my gallery</a>."></iframe>