News:

Looking for documentation? Take a look on our wiki

Main Menu

Odd and broken html tags on order emails.

Started by WebStuff, December 02, 2013, 18:39:32 PM

Previous topic - Next topic

WebStuff

Hi,
Im getting strange "broken" html tags which seem to be randomly appearing in email orders.
They are things like this:
<span class="product-field-type-E"><s pan="">Wipe and Side Seals: ULTIMATE</s></span><s pan=""><br>
&lt; span class="product-field-type-E"&gt;<br>
&lt; br class="clear" /&gt;
In the case of the first one this created an 's' tag with a value of [ pan="" ] from what I can only assume was a span tag. It then closed this tag with a /s but did the same again but didn't close it. This meant the rest of the customfields came out as strikethrough text.
In the others, < and > have been converted to their htmlentities equivalents.

This seems to be happening randomly as I have tried to recreate it but can't.
Is it possible to isolate where this is happening, is there a helper file that constructs and filters the values in customfields?
In the database it is stored as a json string and it doesn't appear like this in the BE.


Thanks in advance.

alatak

Hello

product-field-type-E is a plugin. Which plugin are you using ?

WebStuff

Quote from: alatak on December 03, 2013, 12:50:22 PM
Hello

product-field-type-E is a plugin. Which plugin are you using ?
"VMCustom - textinput"
Is the one I'm using.
Thanks for the reply.

alatak

Hello
I do not have that problem with the text input field
i have
Quote
             <span class="product-field-type-E"><span>TEXT INPUT  xxx</span></span>><br />

Even when   copy/pasting some text with tags in it

WebStuff

Quote from: alatak on December 03, 2013, 15:42:29 PM
Hello
I do not have that problem with the text input field
i have
Quote
             <span class="product-field-type-E"><span>TEXT INPUT  xxx</span></span>><br />

Even when   copy/pasting some text with tags in it
Strange????
Did you paste the output above as it has got an extra ">" in it between the last </span> and the <br /> tags.