I'm currently learning Vue.js and encountering an issue that I can't seem to resolve. My project is utilizing Vue CLI 3, and within my code I am inserting a custom tag (not a component) in my template with a script tag inside it.
<ra type="outstream" pid="888666574" ra_init="open" ra_end="open" skin="dark" hasConsent="1">
<script type="text/javascript" src="https://s.test.com/script.js"></script>
</ra>
This script is designed to target the custom tag ra, hence it needs to be contained within the tag itself. However, when I inspect the site using devTools, the ra tag appears empty - meaning the script isn't present. My speculation is that Vue may be removing the script for security reasons such as preventing XSS attacks, but I absolutely need this script to execute.
Has anyone encountered this issue before? Any insights would be greatly appreciated!
Thanks! :)