Previously when using delete() with <!-- LB --> inside div tags, the tags it was placed in also got deleted, meaning a bunch of non-blog content was deleted too. By specifying <div class='entry'>, only the div tags containing blog entries (<div class='entry'>) are deleted.
In other words, using the function on a $blogfile containing something like:
Previously when using
delete()
with<!-- LB -->
inside div tags, the tags it was placed in also got deleted, meaning a bunch of non-blog content was deleted too. By specifying<div class='entry'>
, only the div tags containing blog entries (<div class='entry'>
) are deleted.In other words, using the function on a
$blogfile
containing something like:Would result in the entire
<div class="content">
tag and contents being deleted.