Special characters or trailing spaces are HTML-encoded in AI CKEditor selected text preview

Created on 10 August 2025, 2 days ago

Problem/Motivation

When entering text with special characters or trailing spaces in the CKEditor (e.g., "pineapple > apple "),
the special characters or trailing spaces are displayed as encoded entities in selected text preview (e.g., pineapple > apple )
when using AI CKEditor options like Summarize.

Steps to reproduce (required for bugs, but not feature requests)

  1. Enable AI CKEditor integration in Drupal.
  2. Open the CKEditor for any text field.
  3. Enter text containing special characters and a trailing space, for example: "pineapple > apple ".
  4. Use an AI CKEditor option like Summarize.
  5. Observe that the "Selected text to summarize" displays encoded entities instead of the original characters.

Proposed resolution

  • Prevent unnecessary HTML entity encoding for special characters and trailing spaces while showing Selected text to summarize preview.

Remaining tasks

  • Implement fix in the AI CKEditor processing logic.

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

🐛 Bug report
Status

Active

Version

1.2

Component

AI CKEditor

Created by

🇮🇳India sijumpk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024