Skip to content

[4.x]: Restrict the usage of emoji #12935

@Megafry

Description

@Megafry

What happened?

Description

The feature #1627 that introduced emojis support can result in unintended consequences. For instance, I have an XML feed me import that contains a field with this specific notation for relations, ":100:41:62:", the field gets automatically transformed to "💯41:62:".

Steps to reproduce

  1. Add the following text to a text field: ":100: :1234:"
  2. Save the field.
  3. The text is now 💯 🔢

Expected behavior

it should be possible to specify whether emojis are allowed globally or at the field level.

Actual behavior

Emojis are allowed in all text fields and this can not be disabled:
:happy: => 😄

Craft CMS version

4.4.3

PHP version

8.0

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Feed Me - 5.1.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions