How to block any PHP code inside a HTML code?
I have a function in my application where user create a HTML page, with HTML code, Javascript code and CSS code. But I can't allow him to save any PHP code, because this content will be saved in a file and loaded in the server.
<html lang="pt-BR">
<head>
</head>
<body>
<h1>This is allowed</h1>
<?php echo "DELETE THIS LINE"; ?>
</body>
<script>
console.log("THIS IS ALLOWED");
</script>
</html>
I need to comment or delete the PHP code, but i don't have idea how to do that.