From: Tim Düsterhus Date: Thu, 20 Jan 2022 11:28:59 +0000 (+0100) Subject: Remove the documentation of the deprecated `|encodeJSON` modifier X-Git-Tag: 5.6.final~75 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee913a4810bbfb39925cdaf4fd1ffa8540d1b423;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git 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 --- 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 `]]]]>`.