javascript - passing @ symbol to mailto field, or how to bypass URL encoding in google-app-script -
I'm trying to specify the mallet link in an HTML template for a Google app script. Unfortunately, the link
& lt; A href = "mailto: foo@bar.com" & gt; to
& lt; A href = "mailto: foo% 40bar.com" & gt; Has been converted to. Because processing involves how will I return the correct mailto link? At most when I return HTML via call:
function doGet (request) {return HtmlService.createHtmlOutput ('& lt; a href = "foo@bar.com" & Gt; mail me & lt; / a & gt; '); } Returned HTML:
I do not have much experience with Google Apps Script, but if I say the following:
Force-printing screenplate, which is the syntax & Lt;?! = ...? & Gt; , these are just like print scriptlets, they avoid avoidable context. Contemporary skipping is important if your script allows unreliable user input. By contrast, you will need to force-print if your Scriptlet's output intentionally is HTML or the script that you specify exactly Want to include.
As a general rule, use a print scriptletlet instead of print-printing scriptlets unless you know that you need to unplug the HTML or JavaScript.
So if I'm right, then you & lt ;? ...? & Gt; in and .
Comments
Post a Comment