Make WordPress Core

Changeset 8073


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

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

File:
1 edited

Legend:

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

    r8054 r8073  
    11331133    $output = str_replace('&gt;', '&amp;gt;', $output);
    11341134
     1135    // These should be entities too
     1136    $output = str_replace('<', '&lt;', $output);
     1137    $output = str_replace('>', '&gt;', $output);
     1138   
    11351139    return apply_filters('richedit_pre', $output);
    11361140}
Note: See TracChangeset for help on using the changeset viewer.