1 drupal.inc drupal_strip_dangerous_protocols($uri)

Strips dangerous protocols (e.g. 'javascript:') from a URI.

Deprecated

since 1.0.0

See also

backdrop_strip_dangerous_protocols()

Related topics

File

core/includes/drupal.inc, line 709
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_strip_dangerous_protocols($uri) {
  return backdrop_strip_dangerous_protocols($uri);
}