# Html\_entity\_decode or encode

**URL:** https://meta.discourse.org/t/html-entity-decode-or-encode/186546
**Category:** Support
**Created:** [April 12, 2021, 6:22pm UTC](https://meta.discourse.org/t/html-entity-decode-or-encode/186546 "2021-04-12T18:22:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ludovik\_Dopierala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ludovik_dopierala/32/193103_2.png) [@Ludovik\_Dopierala](https://meta.discourse.org/u/Ludovik_Dopierala)
#### Post date: [April 12, 2021, 6:22pm UTC](https://meta.discourse.org/t/html-entity-decode-or-encode/186546/1 "2021-04-12T18:22:06Z")

</div>

Hello

I have import with API an old wordpress website. All is fine now. But when I edit some post I can see html code ans not the real characters :  
From  
`culture &#34;projets et accompagnement&#34;`  
To  
`"culture "projets et accompagnement"`

How I can force change it into all post ?  
rake posts:remap ? An existing regex ? An feature or plugin ?

Thank you if you have any idea.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 13, 2022, 1:32am UTC](https://meta.discourse.org/t/html-entity-decode-or-encode/186546/2 "2022-02-13T01:32:01Z")

</div>

There is definitely a rake task that will replace text in all posts, and also target only posts containing certain text so you don’t blindly process every post.
