I am using the CKEditor for my website along with PHP, and want to allow only <b>, <i>, <a>, and <img>
tags. This is easy, however our problem is that a user could essentially add a <b>
tag some where and then not close it resulting in all of the comments thereafter and the rest of that page being bolded.
How do we check and make sure that whatever tag is opened is now closed?