<ul>
  <% @entries.each do |entry| %>
  <li class='post' onclick='location.href="<%= entry.url %>"'>
      <h1 class='title'><%= entry.title.sanitize %></h1>
      <h2 class='pubdate'><%= entry.published.to_s(:published) %></h2>
      <div class='summary'><%= raw(entry.summary.gsub(/<[^>]+>/i,"&nbsp;").match(/^((\S+\s){1,25})/)) %></div>
  </li>
  <% end %>
</ul>

<ul>
  <% @entries.each do |entry| %>
  <li class='post' onclick='location.href="<%= entry.url %>"'>
      <h1 class='title'><%= entry.title.sanitize %></h1>
      <h2 class='pubdate'><%= entry.published.to_s(:published) %></h2>
      <div class='summary'><%= raw(entry.summary.gsub(/<[^>]+>/i," ").match(/^((\S+\s){1,25})/)) %></div>
  </li>
  <% end %>
</ul>

Replace tags with a space
Replace tags with a space
