Title: Code in script tag getting mangled
Last modified: November 19, 2021

---

# Code in script tag getting mangled

 *  [mauszozo](https://wordpress.org/support/users/mauszozo/)
 * (@mauszozo)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/code-in-script-tag-getting-mangled/)
 * For some reason the inline script is getting mangled, resulting in the Carousel
   not working.
 * In the original carousel-anything/plugin.class.php, I see this:
 * `navText:["<div class='nav-btn prev-slide'></div>","<div class='nav-btn next-
   slide'></div>"],`
 * Once the web page renders and I view page source, it looks like this:
 * `navText:["<div class='nav-btn prev-slide'></script></div>","<div class="nav-
   btn next-slide"></div>"],`
 * Any idea why this would happen? It was working fine, and sometime in the last
   couple months it stopped working. Maybe after a WP update?
    -  This topic was modified 4 years, 6 months ago by [mauszozo](https://wordpress.org/support/users/mauszozo/).

Viewing 1 replies (of 1 total)

 *  [riequilibrium](https://wordpress.org/support/users/riequilibrium/)
 * (@riequilibrium)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/code-in-script-tag-getting-mangled/#post-15347216)
 * I have the same problem, it looks like JavaScript interprets the property wrong,
   resulting in closing early the script, therefore messing up the entire carousel.
   
   Is there any fix for this?

Viewing 1 replies (of 1 total)

The topic ‘Code in script tag getting mangled’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/carousel-anything_8fc2a5.svg)
 * [Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel](https://wordpress.org/plugins/carousel-anything/)
 * [Support Threads](https://wordpress.org/support/plugin/carousel-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/carousel-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carousel-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carousel-anything/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [riequilibrium](https://wordpress.org/support/users/riequilibrium/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/code-in-script-tag-getting-mangled/#post-15347216)
 * Status: not resolved