You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem recently with encodeSpecialChars, attributes and ExactTarget. I have a Spanish language email that needs to be encoded, so encodeSpecialChars is a big help. Unfortunately for me, encodeSpecialChars encodes the entirety of special characters. This behavior is problematic because it includes ampersands in href attribute values. I didn't think it would be a problem until I ran a few emails that contained multiple &s and anchor links referencing a section within a page. When this email is sent, ExactTarget replaces each url with it's url forwarding tracking magic and some parameters get lost in the sauce. This does not happen when ampersands are not encoded in the href attribute.
I'm thinking that it might make sense to include an ignore attributes or ignore specific attributes option for encodeSpecialChars, because I don't necessarily need to not encode all ampersands. I know this is partly an ExactTarget problem and might be a pretty extreme edge case, but it has become a pretty consistent issue for me. I'm probably going to fork the repo and try to fix it soon. It just depends on how many Spanish emails I have to code. Just wanted to make you aware.
The text was updated successfully, but these errors were encountered:
I ran into a problem recently with encodeSpecialChars, attributes and ExactTarget. I have a Spanish language email that needs to be encoded, so encodeSpecialChars is a big help. Unfortunately for me, encodeSpecialChars encodes the entirety of special characters. This behavior is problematic because it includes ampersands in href attribute values. I didn't think it would be a problem until I ran a few emails that contained multiple &s and anchor links referencing a section within a page. When this email is sent, ExactTarget replaces each url with it's url forwarding tracking magic and some parameters get lost in the sauce. This does not happen when ampersands are not encoded in the href attribute.
I'm thinking that it might make sense to include an ignore attributes or ignore specific attributes option for encodeSpecialChars, because I don't necessarily need to not encode all ampersands. I know this is partly an ExactTarget problem and might be a pretty extreme edge case, but it has become a pretty consistent issue for me. I'm probably going to fork the repo and try to fix it soon. It just depends on how many Spanish emails I have to code. Just wanted to make you aware.
The text was updated successfully, but these errors were encountered: