Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295840

Upgrade HTML::escapeCdataElement to correctly comment CDATA

$
0
0

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


Viewing all articles
Browse latest Browse all 295840

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>