So I have a blockquote:
<blockquote>
<p>We seek to innovate: not for the sake of doing something different, but doing something
better.</p>
</blockquote>
What I need to do is grab the first and last word from the string. Then I need to wrap <span class="firstWord"></span>around the first word and <span class="lastWord"></span>around the last word in the sentence.
FYI - the text will be constantly changing, so the first and last word will NOT always be the same word.
Is there any way to do this?
source
share