I am using PHPMailer to send emails, but in the body of the email has a field (address) that is coming as a link (to the maps) to the recipient.
I've already used strip_tags () but it did not work. Locally it works, but when testo online does not work.
Code:
$end = $_POST['endereco'];
$enderecoFormatado= strip_tags($end, '<a>');
$corpo = "<h1><table>
<tr>
<td>Endereco: </td>
<td>
$enderecoFormatado
</td>
</tr>
</table>";
$corpo = utf8_decode($corpo);
$mail->msgHTML($corpo);