How to format CData text?

559 views Asked by At

I'm trying to format numbers inside Cdata tags like below:

My current code:

<ProductPrice><![CDATA[{{ product.price }}]]></ProductPrice>

What it shows:

<ProductPrice>24.9900</ProductPrice>

What I need it to show:

<ProductPrice>24.99</ProductPrice>
0

There are 0 answers