String Filter
Component ID
1855116
Component name
String Filter
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
286
Component created
Component changed
Component body
String Filter provides an input filter to replace defined strings with a STRING, VARIABLE, or FUNCTION. Admins can define any number of replacement combinations when configuring a text format.
The format is:
source string|REPLACEMENT_TYPE|replacement value
Examples:
http://example.com/|STRING|//example.com/(removes http protocol to prevent browser mixed-content warnings)/sites/default/files/|VARIABLE|file_public_path(dynamically sets the public file path for the current environment using the file_public path variable){{basepath}}|FUNCTION|base_path(dynamically sets the basepath using Drupal's base_path function)
