Htmldiff.js
Diff algorithm that understands HTML, in the browser.
Install / Use
/learn @tnwinc/Htmldiff.jsREADME
htmldiff.js
HTML Diffing in JavaScript (ok, CoffeeScript actually.)
htmldiff.js is a CoffeeScript port of https://github.com/myobie/htmldiff
(This one has a few more tests.)
This is diffing that understands HTML. Best suited for cases when you want to show a diff of user-generated HTML (like from a wysiwyg editor).
##Usage You use it like this:
diff = require 'htmldiff.js'
console.log diff '<p>this is some text</p>', '<p>this is some more text</p>'
And you get:
<p>this is some <ins>more </ins>text</p>
##Module
It should be multi-module aware. ie. it should work as a node.js module or an AMD (RequireJS) module, or even just as a script tag.
Licensed under the MIT License. See the LICENSE file for details.
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR

