Add HTML filter.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 05:58:23 +0000 (06:58 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 05:58:23 +0000 (06:58 +0100)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index 3115877..c31be8a 100644 (file)
@@ -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. */