<div id='product-component-1796351600920'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();If your content is displaying as code on the page instead of being rendered as HTML, common causes are:
  • The code is being escaped. If the HTML characters (<, >, &) are converted to entities (<, >, &) the browser will show the raw tags rather than interpreting them.

  • The content is wrapped in a code block or preformatted element. Elements like ,

    , or markdown fenced code blocks (...) force literal display.
  • The MIME type / Content-Type header is incorrect. If the server serves the file as text/plain instead of text/html the browser will not render HTML.

  • The file extension or server configuration is wrong. Serving .html files as something else (or using a template system that returns plain text) will prevent rendering.

  • The HTML is being injected into the DOM as text rather than HTML. For example, using textContent or innerText will insert strings literally; use innerHTML when you intend to insert parsed HTML (only with trusted input).

  • A templating or escaping layer is intentionally sanitizing output. Many frameworks auto-escape variables to prevent XSS; you may need to mark output as safe or use an unescaped output helper in the framework (do so only when the content is trusted).

  • The HTML is inside a textarea or inside an element with CSS white-space and font-family that mimic code; or a stylesheet adds styles to show it like code.

  • Server-side rendering of a markdown file: some markdown processors convert HTML blocks to escaped text unless configured to allow raw HTML.

How to diagnose quickly

  1. View page source in the browser. If you see <div> rather than

    , the HTML has been escaped before reaching the browser.

  2. Inspect the element in DevTools. See which element contains the text and whether it’s a /

    /textarea or a normal container.
  3. Check response headers for Content-Type.

  4. Search your code for use of textContent/innerText, or for templating escape filters (e.g., {{ variable }} vs. {{{ variable }}} or | safe).

  5. Check server or framework settings around auto-escaping and allowed raw HTML.

Fixes

  • Ensure the server returns Content-Type: text/html.

  • Remove or change code/pre/textarea wrappers if you want rendering.

  • Use innerHTML (with trusted content) to inject HTML into the DOM.

  • Adjust your template to output unescaped HTML only when safe (use framework’s safe/unescaped syntax).

  • Disable or configure markdown processor to allow raw HTML if appropriate.

  • Stop escaping characters on the server or template layer so < and > are sent literally.

If you share a short snippet of what’s being served (view-source output or the template code and response headers), I can point to the exact cause and suggest the minimal change. } else { loadScript(); } } else { loadScript(); } function loadScript() { var script = document.createElement('script'); script.async = true; script.src = scriptURL; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script); script.onload = ShopifyBuyInit; } function ShopifyBuyInit() { var client = ShopifyBuy.buildClient({ domain: 'dkfeij-51.myshopify.com', storefrontAccessToken: '7f7055c569d0bc3fb1ab1a0177b2d2b3', }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent('product', { id: '7545177604193', node: document.getElementById('product-component-1796351600920'), moneyFormat: '%24%7B%7Bamount%7D%7D', options: { "product": { "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0", "margin-bottom": "50px" }, "text-align": "left" }, "title": { "font-size": "26px" }, "button": { ":hover": { "background-color": "#850ad6" }, "background-color": "#4e067e", ":focus": { "background-color": "#850ad6" } }, "price": { "font-size": "18px" }, "compareAt": { "font-size": "15.299999999999999px" }, "unitPrice": { "font-size": "15.299999999999999px" } }, "layout": "horizontal", "contents": { "img": false, "imgWithCarousel": true, "description": true }, "width": "100%", "text": { "button": "Add to cart" } }, "productSet": { "styles": { "products": { "@media (min-width: 601px)": { "margin-left": "-20px" } } } }, "modalProduct": { "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true }, "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0px", "margin-bottom": "0px" } }, "button": { ":hover": { "background-color": "#850ad6" }, "background-color": "#4e067e", ":focus": { "background-color": "#850ad6" } }, "title": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "bold", "font-size": "26px", "color": "#4c4c4c" }, "price": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "normal", "font-size": "18px", "color": "#4c4c4c" }, "compareAt": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "normal", "font-size": "15.299999999999999px", "color": "#4c4c4c" }, "unitPrice": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "normal", "font-size": "15.299999999999999px", "color": "#4c4c4c" } }, "text": { "button": "Add to cart" } }, "option": {}, "cart": { "styles": { "button": { ":hover": { "background-color": "#850ad6" }, "background-color": "#4e067e", ":focus": { "background-color": "#850ad6" } } }, "text": { "total": "Subtotal", "button": "Checkout" } }, "toggle": { "styles": { "toggle": { "background-color": "#4e067e", ":hover": { "background-color": "#850ad6" }, ":focus": { "background-color": "#850ad6" } } } } }, }); }); } })(); /*]]>*/ </script>