I send the code for insertion to the site via email using mail() . In the letter, a script of the form:<script type="text/javascript" src="http://bla_bla.ru/file.js?[uid]"></script> .
When opening a letter, the src link becomes a clickable link, and it is required that, like everything else, be just text.
Tell me how this can be implemented. Content-type: text / html; With Content-type: text/plain; all the same link.
- Rejoice that another code is shown in the letter ..)) Many systems can simply delete any code in the text of the letter, but why are you tormenting? paste your code, for example, into a .txt file and send attach - Arsen
|
1 answer
Since you have the HTML content type, I would advise to use the HTML tools, that is, to enclose dangerous content that should be passed as is in the pre or code tag
That is something like
<code><script type="text/javascript" src="http://bla_bla.ru/file.js?[uid]"></script></code> or
<pre> <script type="text/javascript" src="http://bla_bla.ru/file.js?[uid]"></script> </pre> See what's more appropriate
Materials:
See also:
- Thanks, before your answer did just that! But thank you for the answer !!! - medvedev
|