Title: How can I stop a function encoding an entity?
Last modified: October 2, 2016

---

# How can I stop a function encoding an entity?

 *  [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/how-can-i-stop-a-function-encoding-an-entity/)
 * I use the code below in my functions to pre-populate new posts.
 * It works fine, except if I use entities (example: »), which are converted (example:»)
   when I open the edit page for a new post.
 * I prefer to keep them unconverted.
 *     ```
           add_filter( 'default_content', 'pu_default_editor_content' );
   
           function pu_default_editor_content( $content ) {
           global $post_type;
           switch( $post_type )
           {
           case 'post':
           $content = 'Default content for blog posts.';
           break;
           }
           return $content;
           }
       ```
   

The topic ‘How can I stop a function encoding an entity?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [gulliver](https://wordpress.org/support/users/gulliver/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/how-can-i-stop-a-function-encoding-an-entity/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
