skip to Main Content

Javascript replace function error – SEO

I have a problem with the javascript replace function and I don't succeed to resolve it. This is my code : https://jsfiddle.net/r36k20sa/1/ var tags = ['zazie', 'johnny']; tags.forEach(function(element) { content = content.replace( new RegExp("(?!<a.*?>.*?)(\b" + element + "\b)(?!.*?<\/a>)", "igm"), '<a…

VIEW QUESTION

jQuery search and filter using keywords – Photoshop

I'm trying to program a search/filter function that searches through unordered list items with data-* attributes based on what the user types in. <input type="text" placeholder="Search..." id="myInput" onkeyup="myFunction()"> <ul id="myUL"> <li><a href="#" data-keywords="photography">Digital Media Design</a></li> <li><a href="#" data-keywords="computers">Information Technology</a></li> <li><a…

VIEW QUESTION
Back To Top
Search