How do I prevent / turn off CDATA wrapping of JS code?
I've tried turning off HTMLPurifier, yet my JS code is still being wrapped by CDATA.
I need to turn this off as we've encountered issues with Google Console complaining about FAQ Schema code being wrapped in CDATA. If you unwrap the schema code from CDATA, then Google is happy.
Bytw this is from a CMS page (after implementing Vekia's TinyMCE enhancements to allow for script tag to be used on CMS page)
Question
Acer
Hi
How do I prevent / turn off CDATA wrapping of JS code?
I've tried turning off HTMLPurifier, yet my JS code is still being wrapped by CDATA.
I need to turn this off as we've encountered issues with Google Console complaining about FAQ Schema code being wrapped in CDATA. If you unwrap the schema code from CDATA, then Google is happy.
Bytw this is from a CMS page (after implementing Vekia's TinyMCE enhancements to allow for script tag to be used on CMS page)
Vekia's Extended TinyMCE enhancements
https://mypresta.eu/en/art/prestashop-16/extended-rich-text-editor.html
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now