Hi! I’m trying to translate my website from English to Vietnamese. In my database, each category has two fields, one for each language. The codes below is what I use to display the Vietnamese fields.
// Translate to Vietnamese
let language = wixWindow.multilingual.currentLanguage;
$w("#dynamicDataset").onReady(() => {
if (language === "vi") {
$w('#button1').label = "Tìm hiểu thêm";
$w("#repeater1").forEachItem(($item, itemData, index) => {
$item('#workTitle').text = itemData['titleVie'];
$item('#workSubtitle').text = itemData['vieDetails'];
$item('#descriptionText').text = itemData['vieShortDescript'];
// This is where it messes up
$item('#bio').text = itemData['artistId']['vieBio'];
});
}
});
But this is what happens when i hit Preview.
Textbox with HTML tags is $item(‘#bio’), in the database is a rich text field.
How do I fix this? If anyone has any idea, please help. Thank you!!!
P/s: Everything else works just fine, it’s only this one that has HTML tags!!