From: Tim Düsterhus Date: Thu, 20 Jan 2022 10:48:16 +0000 (+0100) Subject: Add `|json` template modifier X-Git-Tag: 5.5.0_Alpha_1~200^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e178fa84dc06861c5aba3d14e03161c5396fe9a7;p=GitHub%2FWoltLab%2FWCF.git Add `|json` template modifier --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php new file mode 100644 index 0000000000..16e3652dca --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php @@ -0,0 +1,34 @@ +getTitle()|json} } + * + * Depending on the location you might need to either HTML-encode the resulting JSON string + * or not. Within a `