<div class='blog_table'>
  <?php foreach ($blogs as $blog): ?>
    <?php $title = str_replace(array('\'', '\"'), array('&amp;#39;', '&amp;#34;'), strip_tags($blog->getBlTitle()));?>
    <div class="blog_item" onClick="add_blog('<?php echo $blog->getBlId() ?>', '<?php echo $blog->getRootUrl('') ?>', '<?php echo $title ?>');">
      <?php echo $blog->getRootUrl('') ?>
    </div>
  <?php endforeach ?>
</div>
