Commit 0054280
committed
fix: improve HTML content validation in TaskModal
- Enhanced the isEmptyQuill function to treat images as non-empty content.
- Updated logic to replace common HTML entities and remove all tags before checking for remaining text.
- Ensured whitespace is collapsed correctly to improve content validation accuracy.1 parent 2d1ade1 commit 0054280
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
373 | 377 | | |
374 | | - | |
| 378 | + | |
375 | 379 | | |
376 | | - | |
377 | | - | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
0 commit comments