Ipad/mobile和html编码的Jquery URL链接

Ipad/mobile and html encoded Jquery URL link

本文关键字:Jquery URL 链接 编码 html mobile Ipad      更新时间:2023-09-26

我做了一个web应用程序,我们正在使用imageflow

在图片的描述中,我们有一个链接到我们网站的另一部分。问题是href必须是html编码的,否则它会破坏描述并将url放在错误的位置。因此,它不能在移动设备或ipad/手机上工作。

我是否可以使用其他方法来编码而不是使用$quot;例如,我可以使用某种类型的修复来让它在移动设备上玩得很好?

<img src="image/img1.jpg" longdesc="setup.php" alt="&lt;strong&gt;Name1&lt;/strong&gt;&lt;br /&gt;Birthday1&lt;br /&gt;&lt;a href=&quot;profile.php&quot;&gt;View Profile&lt;/a&gt; / &lt;a href=&quot;photos.php&quot;&gt;Photos&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;greenText&quot;&gt;&lt;strong&gt;Question&lt;/strong&gt; &lt;a href=&quot;ask.php&quot;&gt;Ask them!&lt;/a&gt; " /> 

每个图像都是这样的。imagflow应用程序要求在alt描述中对url进行编码。

您有几个选项来转义引号:

  • &#32;
  • &#x22;
  • &quot;
  • %22(最短一根)

如果可能的话,我建议将URL改为更合适的URL。