# Close all open HTML tags

**URL:** <https://forum.kirupa.com/t/close-all-open-html-tags/304435>\
**Category:** programming\
**Created:** [February 8, 2010, 1:12am UTC](https://forum.kirupa.com/t/close-all-open-html-tags/304435 "2010-02-08T01:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [February 8, 2010, 1:12am UTC](https://forum.kirupa.com/t/close-all-open-html-tags/304435/1 "2010-02-08T01:12:10Z")

</div>

I want users to be able to input some HTML styling on their site.

However, if they leave tags open such as \<b\>, the rest of the site get’s kindof funny formatting.

I’m loading in the data using PHP. Is there any way to close all HTML tags that still lay open?
