Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML in Schema Markup #22

Open
developerMicaelRoche opened this issue Sep 13, 2023 · 1 comment
Open

HTML in Schema Markup #22

developerMicaelRoche opened this issue Sep 13, 2023 · 1 comment

Comments

@developerMicaelRoche
Copy link

developerMicaelRoche commented Sep 13, 2023

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 }}

@mirceapiturca
Copy link
Owner

Thanks,
Yes, this is correct, the output should be markup-free. I will update the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants