【问题标题】:&no always being displayed as special character&no 总是显示为特殊字符
【发布时间】:2012-05-21 09:06:10
【问题描述】:

这可能是我问过的最愚蠢的问题,但我就是找不到解决方案……

我正在处理电子邮件通知,但我不想编写通知,而是想在我的网站上向用户显示他们的通知列表。

现在在我的电子邮件中,我正在使用:

<iframe width=100%; height:100% src='http://www.mysite.com/newsfeed/index.php?email=true&user=".$to_id."&notification_type=messages'/>

但我的电子邮件客户端 (mail.app) 不断将 &notification_type 中的 &no 变成特殊字符...

任何不涉及更改我的 index.php 中的 $_GET 变量的想法?

【问题讨论】:

    标签: php html email html-email


    【解决方案1】:

    你也需要在 url 中使用 html 特殊字符:

    使用&lt;a href=".&amp;amp;user=....&amp;amp;notification_type=.." &gt;

    【讨论】:

      【解决方案2】:

      用这个&amp;amp;代替这个&amp;

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-11-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-04-22
        相关资源
        最近更新 更多