Skip to content

Fix: Improve esc() function to safely handle null/undefined and prevent UI issues#68

Open
Khushi5623 wants to merge 3 commits into
Stanzin7:masterfrom
Khushi5623:fix-esc-function
Open

Fix: Improve esc() function to safely handle null/undefined and prevent UI issues#68
Khushi5623 wants to merge 3 commits into
Stanzin7:masterfrom
Khushi5623:fix-esc-function

Conversation

@Khushi5623
Copy link
Copy Markdown

Changes Made

  • Improved esc() function to handle null and undefined values safely
  • Ensured all inputs are converted to string before escaping
  • Added fallback safety using try-catch

Problem

The previous implementation did not handle null or undefined values properly, which could result in unexpected UI output such as "undefined" or rendering issues.

Solution

Added input validation and safe string conversion to ensure consistent and secure rendering.

Impact

  • Prevents UI glitches caused by invalid values
  • Improves robustness of rendering logic
  • Enhances stability and safety

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.

1 participant