23 #ifndef GRANTLEE_FILTER_H 24 #define GRANTLEE_FILTER_H 26 #include "grantlee_core_export.h" 27 #include "outputstream.h" 28 #include "safestring.h" 30 #include <QtCore/QSharedPointer> 31 #include <QtCore/QStringList> 32 #include <QtCore/QVariant> 56 typedef QSharedPointer<Filter> Ptr;
77 return m_stream->escape( input );
86 return m_stream->escape( input );
94 return m_stream->escape( input );
104 virtual QVariant doFilter(
const QVariant &input,
105 const QVariant &argument = QVariant(),
106 bool autoescape =
false The string is safe and requires no further escaping.
virtual bool isSafe() const
SafeString escape(const SafeString &input) const
Base class for all filters.
SafeString conditionalEscape(const SafeString &input) const
The OutputStream class is used to render templates to a QTextStream.
SafeString escape(const QString &input) const
A QString wrapper class for containing whether a string is safe or needs to be escaped.
The Grantlee namespace holds all public Grantlee API.