# Unwanted HTML entities saved instead of special caracter in auto created page title (and queried tag in structure)

**URL:** <https://forum.getkirby.com/t/unwanted-html-entities-saved-instead-of-special-caracter-in-auto-created-page-title-and-queried-tag-in-structure/35416>\
**Category:** Questions\
**Tags:** v5\
**Created:** [May 21, 2026, 10:33am UTC](https://forum.getkirby.com/t/unwanted-html-entities-saved-instead-of-special-caracter-in-auto-created-page-title-and-queried-tag-in-structure/35416 "2026-05-21T10:33:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuG](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jug/32/15230_2.png) [@JuG](https://forum.getkirby.com/u/JuG)\
**Post date:** [May 21, 2026, 10:33am UTC](https://forum.getkirby.com/t/unwanted-html-entities-saved-instead-of-special-caracter-in-auto-created-page-title-and-queried-tag-in-structure/35416/1 "2026-05-21T10:33:52Z")

</div>

In a website I’m creating, I use the `create:` parameter for a page type blueprint. It allows quick creation of a page type that only has 3 simple fields and a title (which combines the 3 fields).  
Here is an example:

```auto
title: Grade
icon: badge
create:
   title: "{{ page.class }} {{ page.year }} {{ page.score }}"
   slug: "{{ page.class.slug }}-{{ page.year.slug }}-{{ page.score }}"
   fields:
      - class
      - year
      - score
   redirect: false
   status: unlisted

```

The title generated looks like: `Mathematics 2026 Gold Medal`.  
But in some cases I want to use special characters. In French we heavily rely on apostrophes for example : `Mathématiques 2026 Médaille d'Or`.

But in that case the rendered title in the panel is: `Mathématiques 2026 Médaille d&#039;Or`, which is not ideal in a UX standpoint. Same goes if I use `&` as in: `Geographie 2026 Médaille d&#039;Or &amp; Médaille d&#039; Argent`

I checked the generated `grade.fr.txt` and it looks like this:

```auto
Title: Mathématiques 2026 Médaille d&#039;Or

----

Class: Mathématiques

----

Year: 2026

----

Score: Médaille d'Or

```

So the field is properly saved.. but no the title which seems to be escaped.  
**Is there a way to avoid that?**

I noticed **another very specific case** in the interface where special characters were escaped in unwanted places in the panel. When you use a tag field inside an object field or a structure field, that fetches its content from a query. The preview has escaped special characters.  
Here is an example to reproduce with attached screenshot:

```yaml
grades:
   type: structure
   fields:
      gradeslist:
         label: Grades
         type: multiselect
         accept: options
         options:
             type: query
          max: 1
          options:
             query: site.templates.split

```

 ![Capture d’écran2026-05-2112-27-23](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/c/0/c0d62f0ddba007397f2d07461b2b2324869c1bb6.png)

---

<div class="post-metadata">

**Author:** ![JuG](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jug/32/15230_2.png) [@JuG](https://forum.getkirby.com/u/JuG)\
**Post date:** [June 5, 2026, 2:59pm UTC](https://forum.getkirby.com/t/unwanted-html-entities-saved-instead-of-special-caracter-in-auto-created-page-title-and-queried-tag-in-structure/35416/2 "2026-06-05T14:59:20Z")

</div>

**For the 1st problem**.

The use of a query in the [page creation dialog](https://getkirby.com/docs/reference/panel/blueprints/page#page-creation-dialog) is by default escaped, and that includes converting special characters apparently.

To avoid having `d&#039;` instead of my french apostrophes, I used the information provided [here on the query language doc page](https://getkirby.com/docs/guide/blueprints/query-language#querying-information-to-display__escaping-html)

In my blueprint I replaced

`title: "{{ page.class }} {{ page.year }} {{ page.score }}"`  
by  
`title: "{{ page.class }} {{ page.year }} {< page.score >}"`

It solved it.

---

<div class="post-metadata">

**Author:** ![JuG](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jug/32/15230_2.png) [@JuG](https://forum.getkirby.com/u/JuG)\
**Post date:** [June 5, 2026, 3:00pm UTC](https://forum.getkirby.com/t/unwanted-html-entities-saved-instead-of-special-caracter-in-auto-created-page-title-and-queried-tag-in-structure/35416/3 "2026-06-05T15:00:01Z")

</div>

**The 2nd problem** had a fix related to that, also an escaping issue.

in the multiselect blueprint we fix it by adding the value unescaped:

```auto
grades:
   type: structure
   fields:
      gradeslist:
         label: Grades
         type: multiselect
         accept: options
         options:
             type: query
             text: "{< item.value >}" # grab the value from the tag field, but not escaped.
          max: 1
          options:
             query: site.templates.split

```
