who adds these html tags?
-
Hello, I’m following the ‘Accessing user input data’ cookbook to manipulate the email body.
In the form there’s a textarea called ‘notes’, to access this field I do:
$pdsub = $submission->get_posted_data();
$notes = $pdsub[‘notes’];
$mail[‘body’] .= <<<EOF
<tr>
<td>Notes:</td>
<td>Note: $notes</td>
</tr>
EOF;$contact_form->set_properties(array(‘mail_2’ => $mail));
If I print mail[‘body’] the are no html tags beside the ones I add.
When I receive the email, I see many <p> and <br> tags added inside my ‘notes’ field.Where are these html tags added? Is there a way to prevent it?
I hope what I wrote was clear, English is not my mother tongue.
ThanksThe page I need help with: [log in to see the link]
- The topic ‘who adds these html tags?’ is closed to new replies.