TextHelper BulkReplace Method Kentico 8.0 API Reference
Performs bulk replace of given replacements

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

Parameters

text
Type: OnlineSystem String
Text to process
replacements
Type:  OnlineSystem String 
Key-Value pairs of replacements
encode (Optional)
Type: OnlineSystem Boolean
If true, replacements are encoded
useRegEx (Optional)
Type: OnlineSystem Boolean
If true, regular expressions are used to perform the replace
escapeRegExSubstitutions (Optional)
Type: OnlineSystem Boolean
If true, regex special characters are escaped so the replacement value is the value of the result, not the regular expression of replace.

Return Value

Type: OnlineString
See Also