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
  • branches/2.0/wp-includes/functions-formatting.php

    r4387 r4656  
    10511051    return preg_replace("/\r?\n/", "\\n", addslashes($text));
    10521052}
     1053
     1054// Escaping for HTML attributes like
     1055function attribute_escape($text) {
     1056    return wp_specialchars($text, true);
     1057}
     1058
    10531059?>
Note: See TracChangeset for help on using the changeset viewer.