Using:
Expression Engine 1.6.3 (Commercial License)
Problem:
When using an {email} tag within an {exp:member:custom_profile_data} tag, a long javascript array is shown instead of the e-mail address. This does not occur in a different template that uses nearly the same code.
Here’s an example of the offending EE code:
{exp:member:custom_profile_data}
<form action="https://someshoppingcartsite.com" class="shopcart" method="post">
<input type="form" name="price" /><br >
<input type="hidden" name="customer_email" value="{email}" />
<input type="hidden" name="name" value="{username} Deposit" /><br >
<input type="submit" value="Send" />
</form>
{/exp:member:custom_profile_data}and the resulting HTML output (javascript elements were removed b/c they do not show on the boards:
<input type="hidden" name="customer_email" value="[removed]
//<![CDATA[
var l=new Array();
l[0]='>';l[1]='a';l[2]='/';l[3]='<';l[4]= ...THE ARRAY CONTINUES BUT EDITED FOR BREVITY/SECURITY… l[58]='<';
for (var i = l.length-1; i >= 0; i=i-1){
if (l[i].substring(0, 1) == ' ') [removed]("&#"+unescape(l[i].substring(1))+";");
else [removed](unescape(l[i]));
}
//]]>
/script" >Any ideas on how to fix this behavior?