Qurak

Remove tags from imported HTML

示例 1 步,在同一个会话中按顺序运行。每一步都在引擎上执行过,下面的输出就是它实际产生的。

第 1 步
StringReplace[
  "<title>The Title</title>
<h1>The <a href='link'>head</a></h1>
<p>Some text follows here...</p>", "<" ~~ Except[">"].. ~~ ">" -> ""]
输出
The Title
The head
Some text follows here...

用到的函数

相关操作示例

全部操作示例 · 函数参考 · 从 MCP 客户端使用