Javascript 替换&;amp;只有&;在iframe中调用url时
我有一个iframe,其示例格式如下Javascript 替换&;amp;只有&;在iframe中调用url时,javascript,php,jquery,url,iframe,Javascript,Php,Jquery,Url,Iframe,我有一个iframe,其示例格式如下 <iframe src="http://alerts.solution.com/api/web2sms.php?workingkey=A46ba891cf8&sender=MOS&to=1234567890&message=MESSAGE"></iframe> 当这被称为src url时,会发生如下更改: <iframe src="http://alerts.solution.com/api/web
<iframe src="http://alerts.solution.com/api/web2sms.php?workingkey=A46ba891cf8&sender=MOS&to=1234567890&message=MESSAGE"></iframe>
当这被称为src url时,会发生如下更改:
<iframe src="http://alerts.solution.com/api/web2sms.php?workingkey=A46ba891cf8&sender=MOS&to=1234567890&message=MESSAGE"></iframe>
如何删除&
并在调用url后将其替换为&
??
这会导致数据格式无效,并且无法按预期工作
我在javascript和php中尝试了几种方法。似乎什么都没用。非常感谢您的帮助。可能重复: