Wordpress Text Widget replaces php tags with html comment tags?


Staff member
I am attempting to add some php to a page on my wordpress site in the code editor part of my tiny mce editor. However, whenever type something like:

<?php echo "Hello World"; ?>

and then save the article, when I next go to edit the article it replaces my php tags with a html comment:

<!--?php echo "Hello World"; ?-->

Would be very grateful if anyone knows what is going on here and why WordPress is doing this.