WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp rel nofollow

Description

Adds rel="nofollow" string to all HTML entities A elements in content and escapes the content using esc_sql().

Note: this is not appropriate for escaping HTML for output: this function is for adding nofollow to content being added to the database.

Usage

<?php wp_rel_nofollow$text ?>

Parameters

$text
(string) (required) Content that may contain HTML A elements.
Default: None

Return Values

(string) 
Converted content, escaped using esc_sql()

Examples

Notes

  • Uses global: (object) $wpdb to escape text.

Change Log

  • Since: 1.5.0

Source File

wp_rel_nofollow() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.