Skip to content

Commit

Permalink
remove CDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany committed Jul 23, 2023
1 parent f5f4123 commit 416fbf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/code/local/MM/Paypalpaylater/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ public function getSrcSdk() {
Mage::app()->getLocale()->getLocaleCode(),
Mage::app()->getStore()->getCurrentCurrencyCode()
);
$return = "<![CDATA[<script>";
$return = "<script>";
$return.= "var PAYPAL_SCRIPT = '".$url."';";
$return.= "var sp = document.createElement('script');";
$return.= "sp.setAttribute('src', PAYPAL_SCRIPT);";
$return.= "sp.setAttribute('defer', true);";
$return.= "document.head.appendChild(sp);";
$return.= "</script>]]>";
$return.= "</script>";
return $return;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<action method="setText">
<text><![CDATA[
<link rel="preconnect" href="//www.paypal.com />
]]> </text>
]]></text>
</action>
</block>
</reference>
Expand Down

0 comments on commit 416fbf0

Please sign in to comment.