Title: switching to visual editor corrupts php code!
Last modified: August 31, 2016

---

# switching to visual editor corrupts php code!

 *  [dc-rocker](https://wordpress.org/support/users/dc-rocker/)
 * (@dc-rocker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/switching-to-visual-editor-corrupts-php-code/)
 * the code executes fine in text editor, but if I switch to visual editor and then
   back to text editor, I see the code is corrupted. it looks like this:
 * <!–?php and —?> instead of <?php and ?>
 * Any ideas?
 * [https://wordpress.org/plugins/allow-php-execute/](https://wordpress.org/plugins/allow-php-execute/)

Viewing 1 replies (of 1 total)

 *  [mindaji](https://wordpress.org/support/users/mindaji/)
 * (@mindaji)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/switching-to-visual-editor-corrupts-php-code/#post-8343118)
 * Hi, Rocker:
 * Have you got the problem fixed?
 * Minda

Viewing 1 replies (of 1 total)

The topic ‘switching to visual editor corrupts php code!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-execute_a4d4e9.svg)
 * [Allow PHP Execute](https://wordpress.org/plugins/allow-php-execute/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-execute/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-execute/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-execute/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-execute/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-execute/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mindaji](https://wordpress.org/support/users/mindaji/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/switching-to-visual-editor-corrupts-php-code/#post-8343118)
 * Status: not resolved