Skip to content

fix(FormProvider): strip HTML from goal field to ensure clean input#219

Merged
Kariamos merged 1 commit intodevelopfrom
handle-strip-goal-text
Feb 26, 2026
Merged

fix(FormProvider): strip HTML from goal field to ensure clean input#219
Kariamos merged 1 commit intodevelopfrom
handle-strip-goal-text

Conversation

@Kariamos
Copy link
Contributor

This pull request introduces a utility to sanitize the goal field by stripping out any HTML tags before saving it in the form's initial values. This helps ensure that only plain text is stored, improving data consistency and security.

Form data sanitization:

  • Added a stripHtml utility function to remove HTML tags from strings. (FormProvider.tsx)
  • Updated the initialization of the goal field in the form to use the stripHtml function, ensuring the value is plain text. (FormProvider.tsx)

@Kariamos Kariamos added the core label Feb 17, 2026
@Kariamos Kariamos merged commit 767918b into develop Feb 26, 2026
2 checks passed
@Kariamos Kariamos deleted the handle-strip-goal-text branch February 26, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant