Hello there,
I am having trouble getting my landing pages to work properly. I am trying to include a javascript library from a CDN but every time I add it using the Content tab on the blank theme, it gets stripped out. My JQuery link stays but everything is removed. Is there a reason for this or is this an error/bug? This worked just fine in 1.4.1 but broke in 2.0.0 and continues to break/strip html in 2.0.1.
Below is an example of what I am trying to get into my landing page, just above the body tag. However, upon applying or saving, it will remove everything except for the jquery link. I even tried creating my own theme but it just explodes when I try to use the builder or update the content section. Any info as to why this is happening would be appreciated.
Hello there,
I am having trouble getting my landing pages to work properly. I am trying to include a javascript library from a CDN but every time I add it using the Content tab on the blank theme, it gets stripped out. My JQuery link stays but everything is removed. Is there a reason for this or is this an error/bug? This worked just fine in 1.4.1 but broke in 2.0.0 and continues to break/strip html in 2.0.1.
Below is an example of what I am trying to get into my landing page, just above the body tag. However, upon applying or saving, it will remove everything except for the jquery link. I even tried creating my own theme but it just explodes when I try to use the builder or update the content section. Any info as to why this is happening would be appreciated.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/js/materialize.min.js"></script>
{{ outputScripts('bodyClose') }}
<script type="text/javascript">
$(document).ready(function () {
$('select').material_select();
});
</script>
Upon further testing it appears that Mautic is stripping anything more than a single script link/tag at the bottom of the page. I can have a single script there but nothing more, is this defined somewhere? I would like to be able to add more scripts to a non-render-blocking section of the source.