LoginSignup
0
0

More than 3 years have passed since last update.

URLに付与するパラメーターが特殊文字として表示されてしまう

Posted at

事象

http://localhost?a=1&regist_media

のようにHTMLメールでも表示したいが、実際は以下になる。

http://localhost?a=1[商標マーク]ist_media

これは[商標マーク] = &reg と表されているため。

対策

以下のようにかく(PHP)

"http://localhost?a=1".htmlspecialcharactors(&regist_media=)."12345"

Gmailはhttp://localhost?a=1&regist_mediaでも正常に表示されるのですが、
Yahooで受信するとダメみたいです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0