【发布时间】:2015-04-29 17:40:51
【问题描述】:
我有一个将 HTML 样式的 cmets 与其真实文本交替的文件:
<!-- Here's a first line -->
Here's a first line
<!-- Here's a second line -->
Here's a third line
如果注释除了标签本身之外与以下行相同,我想删除它,否则保留它:
Here's a first line
<!-- Here's a second line -->
Here's a third line
我在这里阅读了类似的问题,但无法根据我的情况推断解决方案。
【问题讨论】: