mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复HtmlUtil.removeHtmlAttr处理空格问题
This commit is contained in:
@@ -16,4 +16,10 @@ public class IssueI8YV0KTest {
|
||||
final String str = "<content styleCode=\"xmChange\"/>";
|
||||
Assert.assertEquals("<content/>", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void removeHtmlAttrTest3(){
|
||||
String str = "<content styleCode=\"dada ada\" data=\"dsad\" >";
|
||||
Assert.assertEquals("<content data=\"dsad\">", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user