Skip to content

fix: escape task title and notes when rendering edit fields#992

Open
yamuna898 wants to merge 1 commit into
Charushi06:mainfrom
yamuna898:fix/task-edit-breaks-on-quotes
Open

fix: escape task title and notes when rendering edit fields#992
yamuna898 wants to merge 1 commit into
Charushi06:mainfrom
yamuna898:fix/task-edit-breaks-on-quotes

Conversation

@yamuna898
Copy link
Copy Markdown

Related Issue

Fixes #990
Closes #990

Summary

Fixes an issue where task titles containing double quotes were truncated when opened in edit mode.

Changes Made

  • Escaped task title values before rendering edit inputs.
  • Escaped task notes before rendering edit inputs.
  • Preserved special characters such as quotation marks when editing tasks.
  • Prevented malformed HTML attributes caused by unescaped user input.

Testing

Tested locally with the following cases:

  • A "B" C
  • Hello "World"
  • Notes containing quotation marks

Verified that:

  • Tasks save correctly.
  • Tasks display correctly in the task list.
  • Edit mode shows the complete original text.
  • Saving after editing preserves the full value.

Screenshots

Before:

  • Task displayed correctly in task list.
{BD9DE621-829D-4DB9-9D5E-03C14CDB8B85}
  • Edit mode truncated text after the first quotation mark.
{BD5CB45D-83AD-4F82-9D81-32D62E7605E6}

After:

  • Full task title appears correctly in edit mode.
{A6ECA29D-152C-41BF-ACF7-99A603ED2C0E}

Checklist

  • Code follows project style
  • Tested locally
  • No unrelated changes included
  • Documentation updated (if applicable)

@yamuna898 yamuna898 closed this May 31, 2026
@yamuna898 yamuna898 reopened this May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Task titles containing double quotes are truncated in edit mode

1 participant