Skip to content

Commit

Permalink
fix: diff after converting to html to text (#25582) (#25583)
Browse files Browse the repository at this point in the history
(cherry picked from commit a9ebf58)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Mar 21, 2024
1 parent 4474e05 commit 68d6947
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -224,6 +224,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 68d6947

Please sign in to comment.