# Custom Schema in Blog posts

**URL:** <https://community.hubspot.com/t/custom-schema-in-blog-posts/95282>\
**Category:** CMS Development\
**Created:** [December 4, 2023, 7:30am UTC](https://community.hubspot.com/t/custom-schema-in-blog-posts/95282 "2023-12-04T07:30:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMustaque](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/smustaque/32/93899_2.png) [@SMustaque](https://community.hubspot.com/u/SMustaque)\
**Post date:** [December 4, 2023, 7:30am UTC](https://community.hubspot.com/t/custom-schema-in-blog-posts/95282/1 "2023-12-04T07:30:53Z")

</div>

I am trying to add a dynamic Schema in blog posts but I have an issue with the code. I am using {{ content.name }} for getting the blog post name but in the result, it is coming with containing a span, So the schema checker shows an error.  
I am attaching my code here, what code I’m using and what is the result I got.  
If someone can help me out of this it will be an appreciable moment.  
Thanks in Advance.

 ![Code-Screenshot.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/3/4364d6810b3d7b1909c63d7f112f239107f91e0d.png)

 ![Result-Code.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/8/08f00a84834e5b5c8bf004b3139d929515e6355e.png)

---

<div class="post-metadata">

**Author:** ![paradummy](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paradummy](https://community.hubspot.com/u/paradummy)\
**Post date:** [December 4, 2023, 11:02am UTC](https://community.hubspot.com/t/custom-schema-in-blog-posts/95282/2 "2023-12-04T11:02:24Z")

</div>

Hi @SMustaque  
You can use the “striptags” [filter](https://developers.hubspot.com/docs/cms/hubl/filters#striptags) to remove the surrounding html code:

`{{ content.name|striptags }}`

---

<div class="post-metadata">

**Author:** ![SMustaque](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/smustaque/32/93899_2.png) [@SMustaque](https://community.hubspot.com/u/SMustaque)\
**Post date:** [December 26, 2023, 6:36am UTC](https://community.hubspot.com/t/custom-schema-in-blog-posts/95282/3 "2023-12-26T06:36:14Z")

</div>

Hi @paradummy  
The code works, Thanks for your help.
