Remove stringutils and add simple escaper (#34)

This commit is contained in:
David
2017-01-29 17:26:54 +01:00
parent f44d62d93a
commit e0b0425da4
4 changed files with 33 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
package j2html.attributes;
import static org.apache.commons.lang3.StringEscapeUtils.escapeHtml4;
import j2html.utils.SimpleEscaper;
public class Attribute {
private String name;
@@ -8,7 +9,7 @@ public class Attribute {
public Attribute(String name, String value) {
this.name = name;
this.value = escapeHtml4(value);
this.value = SimpleEscaper.escape(value);
}
public Attribute(String name) {