SecurityHelper GetSafeQueryString Method (String, Boolean)Kentico 8.0 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.0.5239.26125)

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