How to handle apostrophe's in templates?

Hello, I have 2 questions.


1 - How would one handle an apostrophe in a template?
For example here is the code:
<$description default='<p>You're receiving this newsletter because you bought widgets from us.</p>'$>

I can't use the apostrophe in "you're" because it messes up the code and thinks it's ending the default tag. Do I use html entities instead?

---

2 - Also can you put an image in a default tag? For example:
<img src="<$imagesrc link='false' default='header.gif'$>" width="550" height="77" alt="Company Name">

I want the client to have a default image in their template that they can replace themselves (instead of the blank white space that says "replace")

Thanks all!

Stig Stig, 8 years ago

Hi mea2001,
how about using HTML enitities? & #39; or more correct in this case; & rsquo;

(remove the spaces after &)

Stig


The Campaign Monitor Blog – HTML email smarts to go with your good looks.
Stig Stig, 8 years ago

Okay, I see..

Without having checked the first one, here's to more suggestions:

1) Use " instead of ' (<$description default="<p>You&rsquo;re receiving this newsletter </p>"$>)

or

2) Use You are instead of You're :)

Stig


The Campaign Monitor Blog – HTML email smarts to go with your good looks.
mea2001, 8 years ago

Thanks Stig! Using the " instead of ' worked!  Now hopefully someone can help me with question #2... :)

Stig Stig, 8 years ago

No problem!

Sorry, I missed the other question. I'm quite sure you can't set a default image.

Stig


The Campaign Monitor Blog – HTML email smarts to go with your good looks.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098