# Landing pages stripping script links

**URL:** <https://forum.mautic.org/t/landing-pages-stripping-script-links/4484>\
**Category:** Product Support\
**Created:** [July 13, 2016, 7:14pm UTC](https://forum.mautic.org/t/landing-pages-stripping-script-links/4484 "2016-07-13T19:14:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/justint/32/89_2.png) [@JustinT](https://forum.mautic.org/u/JustinT)\
**Post date:** [July 13, 2016, 7:14pm UTC](https://forum.mautic.org/t/landing-pages-stripping-script-links/4484/1 "2016-07-13T19:14:07Z")

</div>

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.

Code:

{{ outputScripts('bodyClose') }}

---

<div class="post-metadata">

**Author:** ![JustinT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/justint/32/89_2.png) [@JustinT](https://forum.mautic.org/u/JustinT)\
**Post date:** [July 13, 2016, 7:14pm UTC](https://forum.mautic.org/t/landing-pages-stripping-script-links/4484/2 "2016-07-13T19:14:07Z")

</div>

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.

```auto
<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>
```

---

<div class="post-metadata">

**Author:** ![JustinT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/justint/32/89_2.png) [@JustinT](https://forum.mautic.org/u/JustinT)\
**Post date:** [July 13, 2016, 8:26pm UTC](https://forum.mautic.org/t/landing-pages-stripping-script-links/4484/3 "2016-07-13T20:26:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 14, 2016, 1:03am UTC](https://forum.mautic.org/t/landing-pages-stripping-script-links/4484/4 "2016-07-14T01:03:43Z")

</div>

Same problem here:

[https://www.mautic.org/community/index.php/4923-landing-page-html-editor-doesn-t-work](https://www.mautic.org/community/index.php/4923-landing-page-html-editor-doesn-t-work)
