Strikethrough price on a repeater

Hello there community. I need your help with strikethrough a price in a repeater.
Project is simple. Inside the repeater we want two formatted price fields. One with the discounted price and one with the original price with a strikethrough line over it. In the database there is a field “formatted price” and a field “formatted discounted price” which have the same values when nothing is on discount.
So when nothing is on discount the “formatted discounted price” will show the orginal price.
When something is on discount the “formatted discounted price” will show the discounted price and
the “formatted price” should appear showing the original price with a strikethrough…
Simple? I don’t know… Maybe for the experts is that’s why i need your help…
thx in advance

I tried with this code but it didn´t work

$w . onReady ( function () {
$w ( “#dataset1” ). onReady (() => {
const currentItem = $w ( “#dataset1” ). getCurrentItem ()
const { price , discountedPrice } = currentItem
$w ( “#repeater1” ). forEachItem (() => {
discountedPrice < price ? $w ( “#text28” ). show () : $w ( “#text28” ). hide ()
$w ( “#text27” ). html =
<span style="text-align: center; color:red; text-decoration: line-through;font-size:13px"> ${ $w ( "#text27" ). text } </span>
})
})

});