Added more API hooks for edit and post formatting.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-04-04 23:15:54 +00:00
parent ce9a20e9e7
commit 3402b5aa08
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,7 @@ function unautobrize($content) {
function format_to_edit($content) {
$content = stripslashes($content);
$content = apply_filters('format_to_edit', $content);
$content = htmlspecialchars($content);
return $content;
}
@ -241,6 +242,7 @@ function format_to_edit($content) {
function format_to_post($content) {
global $wpdb;
$content = stripslashes(stripslashes($content));
$content = apply_filters('format_to_post', $content);
$content = $wpdb->escape($content);
return $content;
}