superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring-react/generate-html-diff.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import HtmlDiff from 'htmldiff-js';

export function generateHtmlDiff(html1: string, html2: string): string {
    return `<div class="html-diff">${HtmlDiff.execute(html1, html2)}</div>`;
}