'&'charachter的问题。 [英] Problem with '&' charachter.

查看:64
本文介绍了'&'charachter的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿。


我有&的问题字符。当我尝试从Web应用程序发送邮件时,我在帖子中包含&,整个邮件在发送时显示为空。那么我该怎样做才能防止这种情况发生?


提前谢谢!

Hey.

I have a problem with "&" character. When I try to send a mail from web application and I include ''&'' to the post the whole message shows empty when send it through. So what can I do to prevent this?

Thanks in advance!

推荐答案


嘿。


我对&有问题字符。当我尝试从Web应用程序发送邮件时,我在帖子中包含&,整个邮件在发送时显示为空。那么我该怎样做才能防止这种情况发生?


提前致谢!
Hey.

I have a problem with "&" character. When I try to send a mail from web application and I include ''&'' to the post the whole message shows empty when send it through. So what can I do to prevent this?

Thanks in advance!






你能提供这样做的代码吗?如果您使用的是HTML电子邮件,可以尝试更换&与& amp; amp;这是该角色的代码。


如果您可以发布代码,它可以帮助人们更轻松地帮助您。


干杯

nathj

Hi,

Can you supply the code that is doing this? If you are using HTML email you could try replacing the & with & which is the code for that character.

If you could post the code it may help people help you more easily.

Cheers
nathj


感谢您的快速回复。是的我会发布代码。它基本上检查用户注册的位置,并根据选择的电子邮件地址发送帖子。

Thanks for the quick reply. Yes I will post the code. It basically checks the users registered ''location'' and according to that choose e-mail address to be send the post.

展开 | 选择 | 换行 | 行号


感谢您发布代码。 &那个导致问题的人物?


& b的目的是什么?服务?它只是信息的一部分吗?如果是这样,它可以简单地改为''和''使用str_replace?


干杯

nathj
Thanks for posting the code. Where exactly is the & character that''s causing the problems?

What purpose is the & serving? Is it simply part of the message? If so could it simply be changed to ''and'' using str_replace?

Cheers
nathj


这篇关于'&'charachter的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆