I want to select block fields from another page.
I got it working with
fields:
structure:
type: structure
fields:
multiselect:
type: multiselect
options: query
query:
fetch: site.find("publications").blocks.toBlocks
text: "{{ block.text }}"
value: "{{ block.id }}"
But when selecting a block, I have all the HTML symbols as well:
Can I convert the
text: "{{ block.text }}"
to readable text string?
Please try "{< block.text >}"
1 Like
Thanks! It seems it translates something. But can I render the HTML as well? Would be cool for colors or headings.
Edit: Trying it with a custom plugin now.
There are 2 other similar issues and they may have occurred after the escaping outputs for security.
1 Like