What I'm trying to do is simply verify all HTML link tags are closed.
<a href="http://www.domain"> -- would go through with no changes. but
<a href="http://www.domain.com> -- would automatically add that last "
Any help would be greatly appreciated.
just use a parse stack put the " on and when you find a matching " pop the old one off. At the end if the stack is empty you're good if not you've got to figure out where your off and add it - or throw an error and make the user add it.