Make WordPress Core


Ignore:
Timestamp:
12/07/2005 12:36:07 AM (21 years ago)
Author:
ryan
Message:

Remove calls to html_entity_decode(). fixes #2029

File:
1 edited

Legend:

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

    r3273 r3276  
    493493
    494494
    495 function format_to_edit($content) {
     495function format_to_edit($content, $richedit = false) {
    496496    $content = apply_filters('format_to_edit', $content);
    497     $content = htmlspecialchars($content);
     497    if (! $richedit )
     498        $content = htmlspecialchars($content);
    498499    return $content;
    499500}
     
    998999
    9991000    $output = $text;
    1000     $output = html_entity_decode($output); // undoes format_to_edit()
    10011001    $output = convert_chars($output);
    10021002    $output = wpautop($output);
Note: See TracChangeset for help on using the changeset viewer.