ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Email XML and CDATA

November 13, 2007 3:48pm

Subscribe [2]
  • #1 / Nov 13, 2007 3:48pm

    Hello Fine Support team!!

    I have an issue with the email conversion to the script with CDATA in EE.  Basically I am parsing some data using XML for a verity of reasons.  Since I am working in a textbody area I am using CDATA in the XML so it shows things as structured HTML in the output XML.

    When I add an email address into the fray, EE converts it to a structure which also includes a CDATA tag… as I am sure I don’t have to say - you cannot nest CDATA, which means my XML becomes invalid and errors out…

    Is there any way that you know of to disable this “conversion” which still means that it is easy for my client to update data - instead of the odd unescape() function that I updated the details to…

    I totally understand the need for anti spam to script it like this; but I need it to not use the CDATA, or come up with a more structured way to handle this - any assistance is very much appreciated.

    Thanks in advance!!

  • #2 / Nov 13, 2007 4:01pm

    Derek Allard

    3168 posts

    Hi Andy.  If you could post an example of this in action it would be super helpful, but I think I have it.  Could you check CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog and see that you have “Automatically turn URLs and email addresses into links?” set to “no”.

    If that’s not it, can you post some code so that I can re-create this and then solve it for you?  Also, what version of EE are you using?

  • #3 / Nov 13, 2007 4:05pm

    Derek,

    You have no idea how long I have spent looking for that setting - thats perfect!!!!

    I will remember to add some code next time for you guys!!

    Many many many thanks!!

  • #4 / Nov 13, 2007 4:12pm

    Derek Allard

    3168 posts

    No problem, and our pleasure.  Glad it helped Andy.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases