Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (17 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.