Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个我想用 SwiftSoup 操作的 HTML,但我不知道如何用 div 将文本包装在正文中 这是一个示例输入:
<body> text <b>not</b> in a div <div>text already in a div</div> </body>
我想实现的输出:
<body> <div>text <b>not</b> in a div</div> <div>text already in a div</div> </body>