javascript - Find word on page, wrap in span tags with class -


I want to find the word on the page, wrap it in the span tag with the class before executing a javascript, I got almost ready is.

If I can do this first thing, then I think I can rest.

Find the word on the page Wrap the Span Tag with the square applied to the span tag. After this they can be searched:

  $ (document) .ready (function () {var injection = /% id = inject% / ig; var injection stack = $ ('#% Id% ') .HTML (); (function ($) {var theInjectionPage = $ ("span.myclass"); theInjectionPage.html (theInjectionPage.html (). Replacement (injection, injection stack));}) (jQuery) }); Do not use regex.  

Do not replace a large part of innerHTML Go Do not Collect $ 200.

To search only the target nodes and the target text and the split, just go to the text nodes. & lt; A & gt; . See the questions for example code by using


Comments