我正在尝试使用以下代码创建一个包含电子邮件地址的预填充 HTML 表单:
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
Email: <input type="text" name="email" size="20" maxlength="255" value="<?php echo($row['email']) ?>"/> <br>
<input type="submit" name="submit" value="SUBMIT" /></p>
</form>
在文本框外回$row['email']
显时,我得到一个超链接的 mailto:[the-email-adress] 很好,但是当我尝试使用电子邮件广告预填充器时,我得到了这个:
<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy63669 = 'MYGOOGLENAME' + '@'; addy63669 = addy63669 + 'gmail' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy63669 + '\'>'); document.write(addy63669); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>This email address is being protected from spambots. You need JavaScript enabled to view it. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>
有没有办法绕过这个?