Make WordPress Core


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

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r4593 r4656  
    10821082}
    10831083
     1084// Escaping for HTML attributes like
     1085function attribute_escape($text) {
     1086    return wp_specialchars($text, true);
     1087}
     1088
    10841089function wp_make_link_relative( $link ) {
    10851090    return preg_replace('|https?://[^/]+(/.*)|i', '$1', $link );
Note: See TracChangeset for help on using the changeset viewer.