From ee913a4810bbfb39925cdaf4fd1ffa8540d1b423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Jan 2022 12:28:59 +0100 Subject: [PATCH] Remove the documentation of the deprecated `|encodeJSON` modifier This one really not not be used any longer. It's still available in the older versions of the docs. see WoltLab/WCF#4645 --- docs/view/template-plugins.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/view/template-plugins.md b/docs/view/template-plugins.md index 34458520..94f6e6c9 100644 --- a/docs/view/template-plugins.md +++ b/docs/view/template-plugins.md @@ -233,16 +233,6 @@ Please [check the implementation](https://github.com/WoltLab/WCF/blob/master/wcf ``` -## `encodeJSON` - -`encodeJSON` encodes a JSON string to be used as a single-quoted string in JavaScript by replacing `\\` with `\\\\`, `'` with `'`, linebreaks with `\n`, and `/` with `\/`. -Additionally, `htmlspecialchars` is applied to the string. - -```smarty -'{@$foo|encodeJSON}' -``` - - ## `escapeCDATA` `escapeCDATA` encodes a string to be used in a `CDATA` element by replacing `]]>` with `]]]]>`. -- 2.20.1