WordPress.org

Make WordPress Core

Changeset 8074


Ignore:
Timestamp:
06/12/2008 09:38:58 PM (13 years ago)
Author:
ryan
Message:

Encode < and > in wp_richedit_pre. Props azaozz. fixes #6449 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/formatting.php

    r7816 r8074  
    11301130    $output = str_replace('&gt;', '&amp;gt;', $output);
    11311131
     1132    // These should be entities too
     1133    $output = str_replace('<', '&lt;', $output);
     1134    $output = str_replace('>', '&gt;', $output);
     1135   
    11321136    return apply_filters('richedit_pre', $output);
    11331137}
Note: See TracChangeset for help on using the changeset viewer.