I was wondering what the proper way was to be able to have <?php tags aswell as code within a textarea for example - without the php trying to be ran. Have searched a few places but could not find a resolution.
Example:
<b>This is my code</b>
<textarea disabled>
<?php
echo 'My PHP code here'; // These PHP Tags and this code should not be run. It should just be displayed in its text form in the textarea.
?>
</textarea>
Took a break from the project, ofcourse I've googled it. @Jaytee Any suggestions for whats causing the issue?
Example of whats not working:
<textarea disabled>
{!!
<?php
echo 'My PHP code here'; // These PHP Tags and this code should not be run. It should just be displayed in its text form in the textarea.
?>
!!}
</textarea>