From: David ‘Bombe’ Roden Date: Thu, 20 Jan 2011 05:58:23 +0000 (+0100) Subject: Add HTML filter. X-Git-Tag: 0.4.2^2~22 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=977406b376374680eb2dae63dc17d8aea1a780dd;p=Sone.git Add HTML filter. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 3115877..c31be8a 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -36,6 +36,7 @@ import net.pterodactylus.sone.main.SonePlugin; import net.pterodactylus.util.io.Closer; import net.pterodactylus.util.logging.Logging; import net.pterodactylus.util.service.AbstractService; +import net.pterodactylus.util.template.HtmlFilter; import net.pterodactylus.util.template.ReflectionAccessor; import net.pterodactylus.util.template.Template; import net.pterodactylus.util.template.TemplateContext; @@ -65,6 +66,7 @@ public class SoneInserter extends AbstractService { static { templateContextFactory.addAccessor(Object.class, new ReflectionAccessor()); templateContextFactory.addFilter("xml", new XmlFilter()); + templateContextFactory.addFilter("html", new HtmlFilter()); } /** The UTF-8 charset. */