我想修改<title> & </title> and <p> & </p>
之间的文字。此外,它可以在数据中重复多次。
<title> DTC Descriptor </title>
<p>This diagnostic procedure supports the following DTC:</p>
<title> Conditions for Running the DTC </title>
<p>This is good</p>
必需的输出:
<title>DTC Descriptor</title>
<p>This diagnostic procedure supports the following DTC:</p>
<title>Conditions for Running the DTC</title>
<p>This is good</p>
我找到了修剪功能,但我只需在标签之间应用该功能。
谢谢!
答案 0 :(得分:2)
以下是两个选项 - 假设ctx.channel().writeAndFlush(Unpooled.copiedBuffer(response.getBytes()));
包含您的示例文字:
html