I'm including a php-file into the current page if a get-variable is set accordingly (e.g. ?action=preferred-action). Now my problem is the following: I am just echoing a single line of HTML per PHP, which includes an <a>-element. In the HREF attribute of that element, there is an email address as a get value. The Email inside of the links href gets changed, so the link is unusable. I've also had this problem when setting the placeholder-attribute of an text input to an email-address. Is this caused by automad? If I call the included php file directly (without including it via automad), I don't have any issues. How can I fix this?
echo '<p>Want to unsubscribe? Click <a href="https://email@example.com">here</a>.</p>';
HTML that is on the page:
<a href="https://www.example.com/content?data=newsletter-action&news_action=unsubscribe&verify=<a href='#' onclick='this.href=mailto:
+ this.innerHTML.split(``).reverse().join(``)' style='unicode-bidi:bidi-override;direction:rtl'>moc.elpmaxe@liam</a>">here</a>