I have markup like this:
<p>one two three four</p>
And I want to use javascript to convert it to this:
<p>one <span>two three<span> four</p>
I have the offset and length of the section I want to wrap in a span, in this case offset = 4
and length = 9
. If using jQuery can make it easier, that is preferable.