I am using the replace method as follows:
<code v-html="'/<test>/'.replace(/(?:\r\n|\r|\n)/g, 'testing')"></code>
I have a larger string that I am testing against with many \n but I noticed with the above replace function to remove these characters, somehow the value <test> inside // gets replaced.