Skip to content

Commit

Permalink
fix: diff after converting to html to text (#25582)
Browse files Browse the repository at this point in the history
(cherry picked from commit a9ebf58)
  • Loading branch information
ankush authored and mergify[bot] committed Mar 21, 2024
1 parent d9f9aa4 commit bfe7619
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit bfe7619

Please sign in to comment.