Changeset 8074

Show
Ignore:
Timestamp:
06/12/08 21:38:58 (3 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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}