Return to Snippet

Revision: 44847
at April 19, 2011 22:01 by zealmurapa

Initial Code
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<?php ob_start();
the_content(''.__('Read more <span class="meta-nav">&raquo;</span>', 'sandbox').'');
$old_content = ob_get_clean();
$new_content = strip_tags($old_content, '<hr><div><p><a><em><b><input><form><img><textarea><li><ol><ul><table><tr><td><th><i><b><h1><h2><h3><h4><h5><h6>');
echo $new_content; ?>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

Initial URL

Initial Description
strip html on loop

Initial Title
Loop that strips unwanted html

Initial Tags

Initial Language