Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Script tag removed in Publish/End user Site

arvind
Level 4
Level 4

Hello Team,

 

Below code is part of one Sightly HTML:

<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script>
var hello = new Swiper(".artcile-page", {
mousewheel: true,
});
</script>

PROBLEM:

In author view source, we can see this piece of code. But in Publish page, only 

<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script> is visible.

Rest part is removed.

 

Regards,AP

 

 

1 Accepted Solution
arvind
Correct answer by
Level 4
Level 4

Resolved using Clientlib.

View solution in original post

2 Replies
arvind
Correct answer by
Level 4
Level 4

Resolved using Clientlib.

View solution in original post

kautuk_sahni
Community Manager
Community Manager

@Thank you for shaing the solution with AEM community.