function genesis_rel_nofollow($xhtml)
{
    $xhtml = genesis_strip_attr($xhtml, array('a'), array('rel'));
    $xhtml = stripslashes(wp_rel_nofollow($xhtml));
    return $xhtml;
}
Beispiel #2
0
/**
 * Adds rel="nofollow" attribute and value to links within string passed in.
 *
 * @since 1.0.0
 *
 * @uses genesis_strip_attr() Remove any existing rel attribute from links
 *
 * @param string $text HTML markup
 * @return string Amendment HTML markup
 */
function genesis_rel_nofollow($text)
{
    $text = genesis_strip_attr($text, 'a', 'rel');
    return stripslashes(wp_rel_nofollow($text));
}