Title: wp_insert_post stripping comments (sometimes)
Last modified: August 19, 2016

---

# wp_insert_post stripping comments (sometimes)

 *  [mslade](https://wordpress.org/support/users/mslade/)
 * (@mslade)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp_insert_post-stripping-comments-sometimes/)
 * I’m working on a migration script that is pulling content from one CMS and inserting
   it into WPMU using wp_insert_post. I’m noticing that a few hundred pages are 
   having their HTML comments entitized (>) which is exposing their contents. On
   further review it appears to only happen when the comment contains HTML.
 * Can anyone suggest any solutions to this?
 * Thanks,
    Mark

The topic ‘wp_insert_post stripping comments (sometimes)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mslade](https://wordpress.org/support/users/mslade/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/wp_insert_post-stripping-comments-sometimes/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
