Need help with a Rich Text issue

You would need to implement a system to automatically close off open tags on run time and add in the characters to that specific tag. If you don’t want a complicated solution, I’d suggest using this module which supports RichText.