fix: diff after converting to html to text (#25582)

This commit is contained in:
Ankush Menat 2024-03-21 19:00:54 +05:30 committed by GitHub
parent 6613ed76fe
commit a9ebf58bd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -283,6 +283,7 @@ function format_content_for_timeline(content) {
// limits content to 40 characters
// escapes HTML
// and makes it bold
content = frappe.utils.html2text(content);
content = frappe.ellipsis(content, 40) || '""';
content = frappe.utils.escape_html(content);
return content.bold();