This project is not covered by Drupal’s security advisory policy.

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:

  1. http://example.com/|STRING|//example.com/ (removes http protocol to prevent browser mixed-content warnings)
  2. /sites/default/files/|VARIABLE|file_public_path (dynamically sets the public file path for the current environment using the file_public path variable)
  3. {{basepath}}|FUNCTION|base_path (dynamically sets the basepath using Drupal's base_path function)

Project information

Releases