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
  • branches/2.0/wp-links-opml.php

    r3470 r4656  
    4545             } // end if not first time 
    4646?> 
    47         <outline type="category" title="<?php echo wp_specialchars($result->cat_name); ?>"> 
     47        <outline type="category" title="<?php echo attribute_escape($result->cat_name); ?>"> 
    4848<?php 
    4949             $prev_cat_id = $result->link_category; 
    5050        } // end if new category 
    5151?> 
    52             <outline text="<?php echo wp_specialchars($result->link_name); ?>" type="link" xmlUrl="<?php echo wp_specialchars($result->link_rss); ?>" htmlUrl="<?php echo wp_specialchars($result->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $result->link_updated) echo $result->link_updated; ?>" /> 
     52            <outline text="<?php echo attribute_escape($result->link_name); ?>" type="link" xmlUrl="<?php echo attribute_escape($result->link_rss); ?>" htmlUrl="<?php echo attribute_escape($result->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $result->link_updated) echo $result->link_updated; ?>" /> 
    5353<?php 
    5454        } // end foreach