Well, I activate
allow_tags_in_post for a test but still removing the html from the
finalplanString variable.
Quote from: BobRay at Feb 28, 2017, 12:34 PMHow about putting the HTML in the email Tpl chunk? That's where it really belongs from a design standpoint, to separate the data from the presentation.
- There is a way to put the content from
finalplanString variable, directly into the tpl?
This is my tpl, and the field with the js content is
[[+hiddenInput]].
<h3>Web email</h3>
<p>
Details: [[+hiddenInput]]
</p>
<p>
Name: [[+firstname]] <br>
Email: [[+email]] <br>
etc...
The result is something like this:
----------------------------
Web email
Details: price: $50date: Thursday, 16 March, 2017
Name: blablabla
Email:
[email protected]
-----------------------------
If I have more than one product looks like this:
Details: price: $50date: Thursday, 16 March, 2017price: $50date: Thursday, 16 March, 2017price: $50date: Thursday, 16 March, 2017
absolutely mess.
- If I create an alert with the variable
alert("finalplanString");
the result is right:
<div class="wrap">price: $50<br>date: Thursday, 16 March, 2017<br></div>
so, what do you think?
thank you!