# html special characters problem

**URL:** <https://forum.djangoproject.com/t/html-special-characters-problem/30073>\
**Category:** Templates & Frontend\
**Created:** [April 11, 2024, 2:13pm UTC](https://forum.djangoproject.com/t/html-special-characters-problem/30073 "2024-04-11T14:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnatoliyViktorovich](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anatoliyviktorovich/32/20294_2.png) [@AnatoliyViktorovich](https://forum.djangoproject.com/u/AnatoliyViktorovich)\
**Post date:** [April 11, 2024, 2:13pm UTC](https://forum.djangoproject.com/t/html-special-characters-problem/30073/1 "2024-04-11T14:13:55Z")

</div>

Hi,

I noticed, that an apostrophe (`'`) displays as `&#39;` 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.

```auto
<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?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [April 11, 2024, 2:43pm UTC](https://forum.djangoproject.com/t/html-special-characters-problem/30073/2 "2024-04-11T14:43:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![AnatoliyViktorovich](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anatoliyviktorovich/32/20294_2.png) [@AnatoliyViktorovich](https://forum.djangoproject.com/u/AnatoliyViktorovich)\
**Post date:** [April 11, 2024, 3:15pm UTC](https://forum.djangoproject.com/t/html-special-characters-problem/30073/3 "2024-04-11T15:15:45Z")

</div>

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