Full text search in HTML ignoring tags / &

You can use window.find() in non-IE browsers and TextRange‘s findText() method in IE. Here’s an example: http://jsfiddle.net/xeSQb/6/ Unfortunately Opera prior to the switch to the Blink rendering engine in version 15 doesn’t support either window.find or TextRange. If this is a concern for you, a rather heavyweight alternative is to use a combination of the … Read more

Highlight selected node, its links, and its children in a D3 force directed graph

The error is because you are selecting the data objects (d.source and d.target) rather than the DOM elements associated with those data objects. You’ve got the line highlighting working, but I would probably combine your code into a single iteration, like this: link.style(“opacity”, function(o) { return o.source === d || o.target === d ? 1 … Read more