我正在尝试创建一个脚本,该脚本遍历包含多个文本句子的段落,并在每个句子的开头和结尾插入一个 li 标签。这可能吗?
所以,翻这一段
<p>
Give your work the edge with this pencil. Awesome design, and chunky gold finish. Get the look.
</p>
进入这个无序列表
<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>