# Output text content from blog summary without HTML/CSS styling

**URL:** <https://community.hubspot.com/t/output-text-content-from-blog-summary-without-html-css-styling/1708>\
**Category:** CMS Development\
**Created:** [April 20, 2017, 2:57pm UTC](https://community.hubspot.com/t/output-text-content-from-blog-summary-without-html-css-styling/1708 "2017-04-20T14:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanhubspot](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/deanhubspot/32/26012_2.png) [@deanhubspot](https://community.hubspot.com/u/deanhubspot)\
**Post date:** [April 20, 2017, 2:57pm UTC](https://community.hubspot.com/t/output-text-content-from-blog-summary-without-html-css-styling/1708/1 "2017-04-20T14:57:08Z")

</div>

On my blog listing pages I have the summary shown, but some posts have large \<h2\> elements at the top, which look funny on the listing page. Is there a way to unstyle the post\_summary field?

Relevant code:

```auto
<div class="post-preview">
 {{ rec_post.post_summary|truncatehtml(100) }}
</div>

```

---

<div class="post-metadata">

**Author:** ![deanhubspot](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/deanhubspot/32/26012_2.png) [@deanhubspot](https://community.hubspot.com/u/deanhubspot)\
**Post date:** [April 20, 2017, 3:00pm UTC](https://community.hubspot.com/t/output-text-content-from-blog-summary-without-html-css-styling/1708/2 "2017-04-20T15:00:18Z")

</div>

Never mind, I have solved my own problem. There is the “striptags” filter that will do this.

`{{ rec_post.post_summary|striptags|truncatehtml(100) }}`
