RSS feed suggestion
-
Why in god’s name do you guys do:
} elseif ($encode_html == 2) {
$output = strip_tags($output);
$output = str_replace(‘&’, ‘&’, $output);
}Instead of
} elseif ($encode_html == 2) {
$output = htmlentities($output);
}in the function the_excerpt_rss from wp-includes/template-functions-post.php
There are a lot of very good reasons to use htmlentities… especially for cases where < and > show up outside of a tag context and need to be converted to < and >, but for other good reasons too. If I could figure out where to send a patch to the project, I would have.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘RSS feed suggestion’ is closed to new replies.