Title: HTML chars
Last modified: January 18, 2023

---

# HTML chars

 *  Resolved [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/html-chars/)
 * I have a php snippet with a code like
 *     ```wp-block-code
       str_replace("<", "&lt;",$text)
       ```
   
 * But the snippet editor changes it to
 *     ```wp-block-code
       str_replace("<", "<",$text)
       ```
   
 * How do I get the code work?
 * Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/html-chars/#post-16388342)
 * Hi [@hupe13](https://wordpress.org/support/users/hupe13/),
 * Thank you for reporting this, we are already working on a fix and we’ll include
   it in the next release which will become available soon.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/html-chars/#post-16388599)
 * I wanted to mention that the issue seems to be only in regards to how the code
   is displayed in the editor but it should still work correctly. A fix in how it
   is displayed will be included in the next release.
 *  Thread Starter [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/html-chars/#post-16388952)
 * You are right, the entry in the database is correct, but only the first time.
   If I change the code, I must change these characters also.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML chars’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/html-chars/#post-16388952)
 * Status: resolved