Skip to content

Commit

Permalink
#91 escape HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 5, 2019
1 parent 2ab9aa2 commit 6d95e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/wring/dynamo/DyEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.xml.bind.DatatypeConverter;
import org.apache.commons.text.StringEscapeUtils;
import org.xembly.Directive;
import org.xembly.Directives;
import org.xembly.Xembler;
Expand Down Expand Up @@ -142,7 +143,7 @@ private static String html(final CharSequence text) {
);
}
mtr.appendTail(out);
return out.toString();
return StringEscapeUtils.escapeHtml4(out.toString());
}

}
Expand Down

0 comments on commit 6d95e20

Please sign in to comment.