ninjecto.plugins.filters.quote

Filter to add quotes to text.

Functions

ninjecto.plugins.filters.quote.filter_quote(environment, text, quote='"', escape_with='\\', newline=None)

Filter to add quotes to text.

This is a naive implementation, as the specifics can vary a lot depending on where you are writing the text.

Parameters
text (str) – Text to adds quotes to.
Returns
The text quoted out, line by line.
Return type
str