To prevent your script to be interpreted, you will need to replace the opening and closing brakets with html code. They will be displayed correctly but the script within won’t get executed!
<script>//Inspect this element console.log(‘this code won’t get executed<br>nothing to see in the console! <br> Also did you notice the line did not break after the <br> elements? What is this sorcery? ‘)</script>
To check which code to use to replace a specific character, have a look at the following resource: