const p=t=>{if(!t)return{boldText:"",paragraphText:""};const o=new DOMParser().parseFromString(t,"text/html").querySelector("div"),c=o&&o.textContent||"";let e="";const r=t.match(/<text-content>(.*?)<\/text-content>/s),a=t.match(/<p>(.*?)<\/p>/s);return r?e=r[1]:a&&(e=a[1]),{boldText:c,paragraphText:e}};export{p as e};