From 0f7024f21fd06429492626d17168d48c97ae8956 Mon Sep 17 00:00:00 2001 From: Marty Bostick Date: Fri, 10 Jul 2026 19:52:24 +0000 Subject: [PATCH] fix: render **bold** as HTML in-page, keep raw markdown for clipboard copy --- index.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 723bd75..a481183 100644 --- a/index.html +++ b/index.html @@ -1193,11 +1193,11 @@ function generatePlan() { updateSharedLinkBox(); - const plan = `📋 Your ClickBaitPays Plan + let rawPlan = `📋 Your ClickBaitPays Plan So what's ClickBaitPays? It's an ad platform where you run small ad campaigns, click a few ads each day, and every ~19 days you get paid more than the campaign cost. You reinvest those payouts into bigger campaigns and scale up. It's simple, takes a few minutes a day, and you can do it from your phone. -Here's a calculator I put together so you can play with the numbers yourself: **https://cbp-calculator.saasy.top?ref=cryptoteambuild** +Here's a calculator I put together so you can play with the numbers yourself: https://cbp-calculator.saasy.top?ref=${refUser} After you sign up, come back to that link — it'll walk you through what's possible and the best plan forward as you grow. @@ -1242,13 +1242,16 @@ Use this link to sign up — it's how your sponsor tracks your progress. If you Good luck — the system works if you work the system. 💪`; - document.getElementById('planOutput').textContent = plan; + // Display in page: render **bold** as HTML, strip leftover ** + document.getElementById('planOutput').innerHTML = rawPlan.replace(/\*\*(.*?)\*\*/g, '$1'); + // Store the raw plan for clipboard copy (keeps ** for Telegram) + document.getElementById('planOutput').dataset.rawPlan = rawPlan; } function copyPlan() { const el = document.getElementById('planOutput'); - const text = el.textContent; - navigator.clipboard.writeText(text).then(() => { + const rawPlan = el.dataset.rawPlan || el.textContent; + navigator.clipboard.writeText(rawPlan).then(() => { const btn = document.getElementById('copyPlanBtn'); btn.textContent = '✅ Copied!'; btn.classList.add('copied');