From 630768f53777be5c7801bf7a35ecd5a90c9fb274 Mon Sep 17 00:00:00 2001 From: Aaron Segal Date: Tue, 14 Nov 2023 16:09:59 -0500 Subject: [PATCH] Removed close html filter because limited rendering works on whole HTML nodes --- .../jinjava/lib/filter/CloseHtmlFilter.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/main/java/com/hubspot/jinjava/lib/filter/CloseHtmlFilter.java diff --git a/src/main/java/com/hubspot/jinjava/lib/filter/CloseHtmlFilter.java b/src/main/java/com/hubspot/jinjava/lib/filter/CloseHtmlFilter.java deleted file mode 100644 index df7526d2e..000000000 --- a/src/main/java/com/hubspot/jinjava/lib/filter/CloseHtmlFilter.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.hubspot.jinjava.lib.filter; - -import com.hubspot.jinjava.doc.annotations.JinjavaDoc; -import com.hubspot.jinjava.doc.annotations.JinjavaParam; -import com.hubspot.jinjava.doc.annotations.JinjavaSnippet; -import com.hubspot.jinjava.interpret.JinjavaInterpreter; - -@JinjavaDoc( - value = "Closes open HTML tags in a string", - input = @JinjavaParam(value = "s", desc = "String to close", required = true), - snippets = { @JinjavaSnippet(code = "{{ \"

Hello, world\"|closehtml }}") } -) -public class CloseHtmlFilter implements Filter { - - @Override - public String getName() { - return "closehtml"; - } - - @Override - public Object filter(Object var, JinjavaInterpreter interpreter, String... args) { - /* - Closes open HTML tags. - */ - - return null; - } -}