refactor: 🔨 Parse html data in Data exporter

This commit is contained in:
Niraj Gautam 2025-06-02 11:08:15 +05:30
parent 0b7c4b0902
commit 769952ecf5
No known key found for this signature in database
GPG key ID: B51A75BDBFD881FC

View file

@ -446,7 +446,8 @@ class DataExporter:
value = format_datetime(value)
elif fieldtype == "Duration":
value = format_duration(value, df.hide_days)
elif fieldtype == "Text Editor" and value:
value = frappe.core.utils.html2text(value)
row[_column_start_end.start + i + 1] = value
def build_response_as_excel(self):