I am trying to make a theme component to display Carbon Ads in my Discourse forum
Carbon Ads are called by inserting the following code where they should be loaded:
<script src="//cdn.carbonads.com/carbon.js?serve=CK7DL2Q7&placement=wwwkodulario" id="_carbonads_js" async type="text/javascript"></script>
In the Theme Component, after checking the guide, I came to the conclussion that the easiest way to do so is by using plugin outlets
However, when I add the following piece of code to </head>
I get the following error:
Error: Unclosed element
script
(on line 2).
<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/foobar">
<script src="//cdn.carbonads.com/carbon.js?serve=CK7DL2Q7&placement=wwwkodulario" id="_carbonads_js" async type="text/javascript"></script>
</script>
I guess it is because I should not be supposed to use a script tag inside another script tag, but how can I fix it? Is there any workaround for this?