src/Liip/Drupal/Modules/DrupalConnector/Filter.php
public function filter_dom_serialize_escape_cdata_element($dom_document, $dom_element, $comment_start = '//', $comment_end = '')
    {
        return filter_dom_serialize_escape_cdata_element($dom_document, $dom_element, $comment_start, $comment_end);
    }
public function filter_dom_serialize_escape_cdata_element($dom_document, $dom_element, $comment_start = '//', $comment_end = '')
    {
        return filter_dom_serialize_escape_cdata_element($dom_document, $dom_element, $comment_start, $comment_end);
    }
public function filter_dom_serialize_escape_cdata_element ( $ dom_document , $ dom_element , $ comment_start = '//' , $ comment_end = '' ) { return filter_dom_serialize_escape_cdata_element ( $ dom_document , $ dom_element , $ comment_start , $ comment_end ) ; }
Adds comments around the <!CDATA section in a dom element.

DOMDocument::loadHTML in filter_dom_load() makes CDATA sections from the
contents of inline script and style tags.  This can cause HTML 4 browsers to
throw exceptions.

This function attempts to solve the problem by creating a DocumentFragment
and imitating the behavior in drupal_get_js(), commenting the CDATA tag.

@param $dom_document
The DOMDocument containing the $dom_element.
@param $dom_element
The element potentially containing a CDATA node.
@param $comment_start
String to use as a comment start marker to escape the CDATA declaration.
@param $comment_end
String to use as a comment end marker to escape the CDATA declaration.
Adds comments around the <!CDATA section in a dom element .