html special characters problem

Hi,

I noticed, that an apostrophe (') displays as ' in my posts ‘body’. (Posts of my Django app, not my posts here on the forum). I might be wrong but it looks like it started after I installed ckeditor. Any advice how to fix that so apostrophe would display as apostrophe?

Thanks.

Edited to add.
Actually the article page doesn’t display special characters, it shows everything just fine. But the Category page, that displays a list. of articles (title and little text prompt) does it.

<p>{{article.body|slice:":200"|striptags}}...</p>

I put striptags because an article text have <p> tags and also <a> tags and I don’t want them in the text prompts. So what is a proper way to deal with that?

I’d first check the database itself. How is the body stored in the table? Does it still have the apostrophe, or has it already been replaced?

1 Like

Thanks! It’s already replaced in database. Put an apostrophe instead of &#39; and now everything is fine.