Show
Ignore:
Timestamp:
12/21/06 10:10:04 (2 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/bookmark-template.php

    r4535 r4656  
    102102            $rel = ' rel="' . $rel . '"'; 
    103103 
    104         $desc = wp_specialchars($row->link_description, ENT_QUOTES); 
    105         $name = wp_specialchars($row->link_name, ENT_QUOTES); 
     104        $desc = attribute_escape($row->link_description); 
     105        $name = attribute_escape($row->link_name); 
    106106        $title = $desc; 
    107107 
     
    267267            $rel = ' rel="' . $rel . '"'; 
    268268 
    269         $desc = wp_specialchars($bookmark->link_description, ENT_QUOTES); 
    270         $name = wp_specialchars($bookmark->link_name, ENT_QUOTES); 
     269        $desc = attribute_escape($bookmark->link_description); 
     270        $name = attribute_escape($bookmark->link_name); 
    271271        $title = $desc; 
    272272