backdrop-contrib / google_cse

Google CSE module for Backdrop CMS
GNU General Public License v2.0
1 stars 1 forks source link

XML Export includes HTML in output #1

Open kreynen opened 6 years ago

kreynen commented 6 years ago

The top of the output is what I'm expecting, but the after </CustomSearchEngine> the output includes normal page HTML.

<?xml version="1.0" encoding="UTF-8" ?>
<CustomSearchEngine id="xxxx" creator="xxxx" language="en" encoding="UTF-8" enable_suggest="true">
    <Title>backdrop</Title>
    <Context>
        <BackgroundLabels>
            <Label name="_cse_zd5nhyr6nny" mode="FILTER" />
            <Label name="_cse_exclude_zd5nhyr6nny" mode="ELIMINATE" />
        </BackgroundLabels>
    </Context>
    <LookAndFeel nonprofit="true" element_layout="7" theme="7" custom_theme="true" text_font="Arial, sans-serif" url_length="full" element_branding="show" enable_cse_thumbnail="false" promotion_url_length="full" ads_layout="1">
        <Logo />
        <Colors url="#008000" background="#FFFFFF" border="#FFFFFF" title="#0000CC" text="#000000" visited="#0000CC" title_hover="#0000CC" title_active="#0000CC" />
        <Promotions title_color="#0000CC" title_visited_color="#0000CC" url_color="#008000" background_color="#FFFFFF" border_color="#336699" snippet_color="#000000" title_hover_color="#0000CC" title_active_color="#0000CC" />
        <SearchControls input_border_color="#D9D9D9" button_border_color="#666666" button_background_color="#CECECE" tab_border_color="#E9E9E9" tab_background_color="#E9E9E9" tab_selected_border_color="#FF9900" tab_selected_background_color="#FFFFFF" />
        <Results border_color="#FFFFFF" border_hover_color="#FFFFFF" background_color="#FFFFFF" background_hover_color="#FFFFFF" ads_background_color="#FDF6E5" ads_border_color="#FDF6E5" />
        <Widget query_parameter_name="cse" />
    </LookAndFeel>
    <AdSense />
    <EnterpriseAccount />
    <ImageSearchSettings enable="false" />
    <autocomplete_settings />
    <sort_by_keys label="Relevance" key="" />
    <sort_by_keys label="Date" key="date" />
    <cse_advance_settings enable_speech="true" />
</CustomSearchEngine>
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8" />
<meta name="Generator" content="Backdrop CMS 1 (https://backdropcms.org)" />
<link rel="shortcut icon" href="http://reynen-express-backdrop.pantheonsite.io/core/misc/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Google CSE XML | Kevin&#039;s Backdrop Testing</title>
    <link rel="stylesheet" href="http://reynen-express-backdrop.pantheonsite.io/files/css/css_1TlA1xYzlm46tsncew3Z92z13MAB4oDemAB6tAmR2mA.css" media="all" />
<link rel="stylesheet" href="http://reynen-express-backdrop.pantheonsite.io/files/css/css_5AoPvzhMHSybQsUFj1qirb1NT3-tEAH-mIweDJCTrc8.css" media="all" />
<link rel="stylesheet" href="http://reynen-express-backdrop.pantheonsite.io/files/css/css_KhYQP8R4MSxOEbVS_CouSjAZ_v8wofW3jQENov0DQ-4.css" media="all" />
<link rel="stylesheet" href="http://reynen-express-backdrop.pantheonsite.io/files/css/css_47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU.css" media="all" />
<link rel="stylesheet" href="http://reynen-express-backdrop.pantheonsite.io/files/css/css_siwan-5vxS38-hwBRQp9i0II1KAmaKZrpLnOXkMJVcc.css" media="screen" />
    <script>window.Backdrop = {settings: {"basePath":"\/","pathPrefix":"","drupalCompatibility":true,"ajaxPageState":{"theme":"seven","theme_token":"HXe5jZIwDXKkPd50iBd-XJu6pD9SeW5FpBlVza_u1Fc","css":{"core\/misc\/normalize.css":1,"core\/modules\/system\/css\/system.css":1,"core\/modules\/system\/css\/system.theme.css":1,"core\/modules\/system\/css\/messages.theme.css":1,"core\/modules\/system\/css\/system.admin.css":1,"core\/modules\/layout\/css\/grid-flexbox.css":1,"core\/modules\/contextual\/css\/contextual.css":1,"core\/modules\/comment\/css\/comment.css":1,"core\/modules\/date\/css\/date.css":1,"core\/modules\/field\/css\/field.css":1,"modules\/google_cse\/css\/google_cse.css":1,"core\/modules\/user\/css\/user.css":1,"core\/modules\/views\/css\/views.css":1,"core\/modules\/admin_bar\/css\/admin_bar.css":1,"core\/layouts\/boxton\/boxton.css":1,"core\/themes\/seven\/css\/seven.base.css":1,"core\/themes\/seven\/css\/style.css":1,"core\/themes\/seven\/css\/responsive-tabs.css":1,"core\/misc\/opensans\/opensans.css":1},"js":{"core\/misc\/html5.js":1,"core\/misc\/jquery.js":1,"core\/misc\/jquery.once.js":1,"core\/misc\/backdrop.js":1,"core\/modules\/layout\/js\/grid-fallback.js":1,"core\/modules\/contextual\/js\/contextual.js":1,"modules\/google_cse\/js\/google_cse.js":1,"core\/modules\/admin_bar\/js\/admin_bar.js":1,"core\/themes\/seven\/js\/script.js":1}},"googleCSE":{"cx":"004124683609695745357:zd5nhyr6nny","resultsWidth":600,"domain":"dynamic value in file \/google_cse\/google_cse.theme.inc line 71","showWaterMark":0},"admin_bar":{"activeTrail":"\/admin\/config","destination":"destination=admin\/config\/search\/export-cse","hash":"028bb7b527620fec183e12260928ea6b","basePath":"\/admin_bar","replacements":{".admin-bar-users a":"1"},"margin_top":1}}};</script>

<!--[if lte IE 8]>
<script src="http://reynen-express-backdrop.pantheonsite.io/files/js/js_WWNV78aY_Z9QioRHLQ49o5nLOwva7Ml9ayge9TfSQPc.js"></script>
<![endif]-->
<script src="http://reynen-express-backdrop.pantheonsite.io/files/js/js_BtYmLuDuYCkYUNRzQslxtRu0NDgcMRp9x4mWT0Nnn0w.js"></script>
<script src="http://reynen-express-backdrop.pantheonsite.io/files/js/js_PTPv0ald0hfELg5iudKb_jljHfjlKSqnVz458d70Y_4.js"></script>
<script src="http://reynen-express-backdrop.pantheonsite.io/files/js/js_SXhA-e5sSqlbsDa7pTXpTLiyjPwfUzLGvT5zsBD-aJo.js"></script>
<script src="http://reynen-express-backdrop.pantheonsite.io/files/js/js_XQC_zCAHBQUSYTYByqMbFo_kb8nUMwU2BUsUbTaBsjY.js"></script>
  </head>
  <body class="page logged-in">...
laryn commented 6 years ago

May be related: https://github.com/backdrop/backdrop-issues/issues/2312