How can I add spaces in product descriptions using code?

Solved

How can I add spaces in product descriptions using code?

EcoMask
Shopify Partner
15 3 3

I have a product description sent through the app. I can't edit via csv, because the product quantity is lost and I have to reconnect.
I need to add spaces in the description after each character ":".
Manual editing of 500 products is very slow. I understand I need js replace function. But I don't know how to get to the text in {{ product.description }}.
Here's the product page for an example.
https://armonicospain.com/products/gu7628_01b

Accepted Solution (1)

EcoMask
Shopify Partner
15 3 3

This is an accepted solution.

{{ product.description | replace: ':', ': ' }}

View solution in original post

Reply 1 (1)

EcoMask
Shopify Partner
15 3 3

This is an accepted solution.

{{ product.description | replace: ':', ': ' }}