i want a function that finds some strings i’ve got in an array in the DOM and emphasize it.
eg.
keywords[0] = 'linux';
keywords[1] = 'suse pro';
<body>
im a huge fan of <em>linux</em> and at the moment im using <em>suse pro</em> and finds it amazing.
</body>
how do i do it in the easiest way. thanks in advance
EDIT: i found a very easy way to accomplish this: jquery highlight plugin! cheers!
there’s a jquery plugin that does this:
http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html