Html entities in select field that fetches from structure

Hello:)

I have a select field populated via query to a structure field in another page, like this:

      venue: 
        type: select
        options: query
        query: 
          fetch: site.find('about').venues.toStructure
          text: "{{ structureItem.name }}"
          value: "{{ structureItem.name }}"
        translate: false

Here the full structure field:

  venues: 
    type: structure 
    fields: 
      name:
        type: text 
      address: 
        type: writer
        nodes: false 
        marks: false 
      phone: 
        type: tel 
      openingtimes: 
        label: Opening Times 
        type: writer 
      image: 
        type: files 
        multiple: false 
      hide:
        label: Hide venue from frontend
        type: toggle
        text: 
          - "no"
          - "yes"

First of all, the reference here tells us to use {{ item. }} which does not work for me, instead of {{ structureItem. }} which works for me.

Second, while the select works, when using an apostrophe in the original structure field item, I get an html entity visible on the select field, as such:

image

image

The copy pasted text is: L’absolució

In the content file:

  name: "L'absolució"
  address: ""
  phone: ""
  openingtimes: ""
  image: [ ]
  hide: 'false'

This is Kirby 3.7.2.1

What may be wrong?

Thanks

That depends on your Kirby version, always use the version of the documentation that corresponds to your Kirby version: Versions | Kirby CMS

First step would be to check if the issue still exists in the latest Kirby version.

Ah ok, I see that changed to item later, thanks.

Still the rest seems to be correct code, and still showing the html entities

Thanks

Can’t reproduce this in 3.9.5

Just for the sake of completion, I had copied the wrong entry from the content file at the end of my initial post, I edited it.

The apostrophe that does show as html entity is: '
While the apostrophe that does not show as html entity is:

Thanks