diff --git a/DISCHARGE_SUMMARY_HTML_EDITOR_FIX.md b/DISCHARGE_SUMMARY_HTML_EDITOR_FIX.md new file mode 100644 index 0000000..3ab8c2d --- /dev/null +++ b/DISCHARGE_SUMMARY_HTML_EDITOR_FIX.md @@ -0,0 +1,64 @@ +# Discharge Summary HTML Editor Fix + +## Problem +After converting textarea controls to HTML editors (TinyMCE/similar) in the discharge form, saved discharge summaries were not appearing in the generated PDF. + +## Root Cause +The `normalizeRichText()` function at line 1591 in `Ipd_discharge.php` was stripping ALL HTML tags using `strip_tags()`. This was designed for plain textarea input, but when HTML editors save formatted content with `

`, ``, `

`, `