I’m trying to create a script that iterates through a paragraph with several sentences of text and inserts a li tag at the start and at the end of each sentence. Is this possible?
So, turning this paragraph
<p>
Give your work the edge with this pencil. Awesome design, and chunky gold finish. Get the look.
</p>
into this unordered list
<p>
<ul>
<li>
Give your work the edge with this pencil.
</li>
<li>
Awesome design, and chunky gold finish.
</li>
<li>
Get the look.
</li>
</ul>
</p>
Untested, but you get the idea. Split, then run through the array, wrapping in your tags.