You can not use plain HTML code inside <code>
because it will be parsed as HTML. You have to encode each < and > Symbol to prevent this. This is not an hugo or prism.js issue.
Look also at https://stackoverflow.com/questions/11386586/how-to-show-div-tag-literally-in-code-pre-tag