Is there any way to make this HTML script work on my website?

Hey! I’m making a website for a church, and I’m trying to use a 3rd party service to find all of the Bible references on my website and turn them into links to the Bible passage. I’ve found a few services, and they seem pretty easy, things like just placing this code into my HTML:

However, I know that I can’t access all of the HTML directly on the website. I tried pasting that into an HTML element and it didn’t work. If I can’t make this change for the whole website I’d at least like to add it to a few elements on my website. Any help would be great, thanks!

Hello,

Here is an article describing the limitations and capabilities of embedded code in Wix.

Found from the article:

There are many JavaScript libraries that you can use in an HTML element. However, limitations similar to those regarding widgets apply to libraries as well. The library you add will only be able to interact with the elements inside your HTML element . To interact with the library from your page code or to interact with your page elements from the library, you need to use the messaging model described below.
I would try using the messaging model it describes as your best option for this.

Goodluck,
Majd