Midhun k
Midhun k

Reputation: 1

Are there any methods to convert 'escape sequences' to 'special characters' in the Liquid template language?

product.type = "100FWTB, 25L-BELOW, 4'4"-5'5", 5'0" - 5'11", FIREWIRE, FUTURES, Groveler Surfboards, HELIUM 2, HELIUM CONSTRUCTION, IN-STOCK, N60, partial_payment, PO#514, SHORTBOARDITEMS, SHORTBOARDS, SURFBOARDS";

"product_type":"{{ product.type | escape }}"

Here is the result after escape method

100FWTB, 25L-BELOW, 4'4"-5'5", 5'0" - 5'11", FIREWIRE, FUTURES, Groveler Surfboards, HELIUM 2, HELIUM CONSTRUCTION, IN-STOCK, N60, partial_payment, PO#514, SHORTBOARDITEMS, SHORTBOARDS, SURFBOARDS

And i want to back to noraml in store front

expecting result is

100FWTB, 25L-BELOW, 4'4"-5'5", 5'0" - 5'11", FIREWIRE, FUTURES, Groveler Surfboards, HELIUM 2, HELIUM CONSTRUCTION, IN-STOCK, N60, partial_payment, PO#514, SHORTBOARDITEMS, SHORTBOARDS, SURFBOARDS

Upvotes: 0

Views: 37

Answers (0)

Related Questions