The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Apostrophe is replaced with #39S;

Occasional Contributor

Apostrophe is replaced with #39S;



I am encountering a peculiar problem while creating an email campiagn programitically. The Apostophe in my email is being replaced with #39S;. Can you please help me in resolving this issue.


Re: Apostrophe is replaced with #39S;

Hi Anupriya,


When you create your email instead of using that apostrophe try to use ' and when you preview the HTML it should work. 


Let me know if this helps,

Ryan Davis
Quality Engineer
Occasional Contributor

Re: Apostrophe is replaced with #39S;

OK. I resolved the issue by applying the following code.


$html= str_replace("#39;", "'", $html);



Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More