Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Characters get encoded when copying a set with html

Open
#11,958 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
laravel, php
Domain
frontend

Research direction

Start by reproducing the reported behavior in a Bard field containing a set with a Code field: add HTML, then copy or drag the set to another field or entry. Trace the copy/drag path for that set; done means the HTML characters remain unencoded in the copied content.

Written by the indexing model from the issue text.

Description

bard fieldtypes
Bug description

Whenever you copy or drag a set that includes html to another field or another entry, it encodes html characters.

How to reproduce

Create a set with a Code field inside of a Bard field. Add some html to the code field then try to copy it. It will encode the html characters, resulting in something like the image below.

Image
Logs

Environment
Environment
Application Name: Not a Tesla App
Laravel Version: 10.48.29
PHP Version: 8.2.8
Composer Version: 2.8.10
Environment: production
Debug Mode: OFF
URL: www.notateslaapp.com
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: postmark
Queue: sync
Session: database

Statamic
Addons: 1
Sites: 2 (Not a Tesla App, Rivian Wave)
Stache Watcher: Disabled
Static Caching: Disabled
Version: 5.58.1 PRO

Statamic Addons
statamic/eloquent-driver: 4.25.2

Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: eloquent
Collection Trees: file
Collections: eloquent
Entries: eloquent
Forms: eloquent
Global Sets: eloquent
Global Variables: file
Navigation Trees: file
Navigations: eloquent
Revisions: eloquent
Sites: file
Taxonomies: eloquent
Terms: eloquent
Tokens: file
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 9h
Merged PRs (30d)
102

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.