# HTML tag checker

**URL:** <https://www.ruby-forum.com/t/html-tag-checker/188204>\
**Category:** Rails\
**Created:** [May 7, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/html-tag-checker/188204 "2010-05-07T16:22:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [May 7, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/html-tag-checker/188204/1 "2010-05-07T16:22:00Z")

</div>

Hi All,

I’m having a text area in my rails application as \<%= f.text\_area :text  
%\>. User allowed to enter HTML tags in that text area. I’m facing  
following problems:

1. Not able to check whether the HTML tags entered by user are correct  
or not i.e how to check whether the HTML tags are properly closed or not  
(\<\>).

2. If the user copies the source code of any site and pastes it into  
above text field, the layout distracts.

Suggestions Appreciated…

Thanks and Regards

Saurabh P.
