Rich Text showing <p class> <p> on front end when adding info in CMS

Question:
Im using the CMS collections to populate my pages with text. Im trying to use Rich Text but the P anchors show? Has anyone come across this?

I have a text box that is populated through a text panel in cms above it which comes out fine!

async function populateProductInformation() {
const productId = product._id;
const productInfoQueryResult = await wixData
.query(“productInfo”)
.hasSome(“product”, productId)
.find();
const productInfo = productInfoQueryResult.items[0];
console.log(“productInfo”, productInfo);
$w(“#productInfo”).text = productInfo.text;
$w(“#richProductInfo”).text = productInfo.richtext;
}

Wix studio.

Rich text should be displayed within a “Rich Content” element

2 Likes

ahhhh! Thank you! Right sorry I didn’t know. Thank you.again

1 Like