Announcement

Collapse
No announcement yet.

How can I prevent characters from being converted to HTML?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I prevent characters from being converted to HTML?

    I have got an issue with the content of a Text Area field having characters being converted to code when outputted to the notification emails. For example a customer enters

    Please add 1 shelf 11"L by 13.5"W

    it gets outputted as

    Please add 1 shelf 11"L by 13.5"W

    The store is using the EmporiumPlus Addendum module to capture this information (along with a few other questions). The text area question has been added directly to the OCST screen

    Code:
     <div style="padding:0 20px;"><p><b>Enter any special instructions for your order:</b><br />
    <textarea name="question1" cols="80" rows="6"></textarea>
    </p>
    </div>
    It's outputted in the notification email

    Code:
    partial code snippet
    
    <td height="20"><font size="4" face="Times New Roman, Times, serif">Special Order Instructions</font></td>
    </tr>
    <tr>
      <td height="20">&nbsp;</td>
      <td height="20"><font size="2" face="Arial, Helvetica, sans-serif">&mvt:global:question1;
    I have tried using &mvt:global:question1; and &mvte:global:question1; but neither seem to affect what's being input/outputted by the field.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Try something like <mvt:eval expr="decodeentities(g.question1)" /> in the email display and see if that forces it.

    Comment


      #3
      Have you looked at the actual database to see if something in addendum is encoding values?
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        Originally posted by Bruce - PhosphorMedia View Post
        Have you looked at the actual database to see if something in addendum is encoding values?
        Not yet.
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          Originally posted by Dan - Glendale Designs View Post
          Try something like <mvt:eval expr="decodeentities(g.question1)" /> in the email display and see if that forces it.
          I tried that with my gift receipts and it worked. Thanks.

          Comment

          Working...
          X