mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add method
This commit is contained in:
@@ -212,9 +212,9 @@ public class XmlUtilTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cleanNoteTest() {
|
||||
public void cleanCommentTest() {
|
||||
final String xmlContent = "<info><title>hutool</title><!-- 这是注释 --><lang>java</lang></info>";
|
||||
final String ret = XmlUtil.cleanNote(xmlContent);
|
||||
final String ret = XmlUtil.cleanComment(xmlContent);
|
||||
Assert.assertEquals("<info><title>hutool</title><lang>java</lang></info>", ret);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user