Open developerMicaelRoche opened 9 months ago
The following line (found here) causes the json to include json-parsed HTML in the accepted answer: "text": {{ block.settings.content | json }}
"text": {{ block.settings.content | json }}
I recommend using the following instead: "text": {{ block.settings.content | strip_html | json }}
"text": {{ block.settings.content | strip_html | json }}
Thanks, Yes, this is correct, the output should be markup-free. I will update the code
The following line (found here) causes the json to include json-parsed HTML in the accepted answer:
"text": {{ block.settings.content | json }}
I recommend using the following instead:
"text": {{ block.settings.content | strip_html | json }}