Is there a JS diff library against htmlstring just like google-diff-match-patch on plain text?

前端 未结 4 1398
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 18:55

Currently I am using google-diff-match-patch to implement a real-time editing tool, which can synchronize texts between multiple users. Everything works great when operations ar

4条回答
  •  余生分开走
    2021-01-30 19:30

    jsdifflib - A Javascript Visual Diff Tool & Library https://github.com/cemerick/jsdifflib

    There's a demo here: http://cemerick.github.io/jsdifflib/demo.html

提交回复
热议问题