I’m trying to make a dynamic JavaScript function in the shortcode:
<script>
carousel_{{$class}}(1, '{{$class}}');
The HTML source shows the double quotes are retained.
<script>
carousel_"slider316"(1, 'slider316');
I don’t want the double quotes around my variable slider316.
What is the easiest way to remove the double quotes?
Thanks.