Page 1 of 1

decorator and anchor tags

Posted: Fri Apr 17, 2009 4:49 pm
by daxiang28
Hi,
I am having problems with the decorator recognizing keys in anchor tags:

Code: Select all

<a href="http://site.com/{DECORATEKEY}/">link</a>
The decorator however works fine if i pull the link out of the anchor tag:

Code: Select all

http://site.com/{DECORATEKEY}/
Any thoughts?

Php 5
Swift 4.03
Using batchSend()

Steve

Re: decorator and anchor tags

Posted: Sun Apr 19, 2009 11:06 pm
by Chris Corbyn
Hi,

Did you post on the mailing list too? If you did, I replied to that email.

Basically Swift Mailer doesn't have any knowledge of HTML and just does blind str_replace() calls, so there's no real reason it shouldn't work.

Things that would break it are URL encoding or HTML escaping the {REPLACEMENT} text, since the str_replace() will then fail.

Cheers,

Chris

Re: decorator and anchor tags

Posted: Mon Apr 20, 2009 1:26 am
by daxiang28
Hi Chris,

Thanks for replying. I did find that I was using Sidecar's Emogrifier to convert html emails to text. It was url encoding somewhere (I'm assuming the DOMDocument.

Thanks,
Steve