Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WYSIWYG field - filtering for special characters #22555

Closed
ksawery-brzeski opened this issue May 23, 2024 · 1 comment
Closed

WYSIWYG field - filtering for special characters #22555

ksawery-brzeski opened this issue May 23, 2024 · 1 comment

Comments

@ksawery-brzeski
Copy link

ksawery-brzeski commented May 23, 2024

Describe the Bug

I have discovered that search for WYSIWYG fields is somewhat flawed. If you add some special character via the editor, it will be escaped in the actual html of the WYSIWYG.

When filtering you are not able to search for this value. Looks like the search treats the generated HTML as text

To Reproduce

  1. Create a collection
  2. Add a WYSIWYG field to it
  3. Create a record.
  4. In the WYSIWYG field, insert some value with a special character, say < 2 and save the record
  5. Filter for records containing < 2 - no records will be returned
  6. Filter for <p>&nbsp;&lt; 2</p> - the record will be filtered

Directus Version

v10.10.1

Hosting Strategy

Self-Hosted (Docker Image)

Database

No response

@br41nslug
Copy link
Member

Duplicate of #19777

@br41nslug br41nslug marked this as a duplicate of #19777 May 23, 2024
@br41nslug br41nslug closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants