{{jsonify}} helper

Helper for creating JSON-safe strings.

Syntax:

{{{jsonify string|object}}}

Example:

{{{jsonify tags}}}

Warning! Please remember to use three curly braces instead of two if you want to use it as a part of the JS configuration etc.

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide