Skip to content

fix: properly escape special characters in CSV exports#997

Open
yamuna898 wants to merge 2 commits into
Charushi06:mainfrom
yamuna898:fix/csv-export-special-character-handling
Open

fix: properly escape special characters in CSV exports#997
yamuna898 wants to merge 2 commits into
Charushi06:mainfrom
yamuna898:fix/csv-export-special-character-handling

Conversation

@yamuna898
Copy link
Copy Markdown

@yamuna898 yamuna898 commented May 31, 2026

Related Issue

Closes #996

Summary

Fixes an issue where CSV exports became malformed when task fields contained commas or quotation marks.

Changes Made

  • Added a dedicated CSV field escaping helper.
  • Escaped task title, subject, status, notes, and other exported fields.
  • Ensured commas inside values do not create additional columns.
  • Preserved quotation marks according to CSV formatting rules.

Testing

Tested locally with the following values:

  • React, Node and Express Revision
  • Hello "World"
  • Notes containing commas and quotation marks

Verified that:

  • Exported CSV files open correctly in Excel.
  • Values remain inside a single cell.
  • Quotation marks are preserved correctly.
  • No column shifting occurs.

Screenshots

Before Fix

  • Task titles containing commas were split across multiple columns in Excel.
image

After Fix

  • Values containing commas and quotation marks remain within a single cell.
{3B9AB4CC-95C2-459D-905A-08B0ACDED7A8}

Checklist

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

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: CSV export does not properly escape fields containing commas

1 participant