Problem/Motivation
As of now, HTML::escapeCdataElement uses probably old way of commenting cdata element. For example, for cdata inside script tag the output is
<!--//--><![CDATA[// ><!--
But this is preventing Google to read structured data.
Steps to reproduce
In body (CKEditor) field, add script tag with some content. Ensure "Prevent faulty and Chopped off HTML" filter is selected for the Text format.
Proposed resolution
Probably using new ways of commenting cdata
//<![CDATA[
Reference Link: https://en.wikipedia.org/wiki/CDATA#Use_of_CDATA_in_program_output