SecurityHelper GetSafeQueryString Method (String, Boolean)Kentico 8.1 API Reference
Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

input
Type: OnlineSystem String
String to escape
escapeWildcards
Type: OnlineSystem Boolean
Determines whether the wildcards characters should be escaped

Return Value

Type: OnlineString
See Also