We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to exclude some DOM elements based on some class. For this I used filterElements:-
findAndReplaceDOMText(container, { filterElements: function(el) { if (el.className) { return el.className.indexOf('test') === -1; } }, find: regex, replace: function(portion, match) { called = true; var el = document.createElement('span'); el.className = 'custom_highlight'; el.innerHTML = portion.text; return el; }, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to exclude some DOM elements based on some class.
For this I used filterElements:-
The text was updated successfully, but these errors were encountered: