I am not aware about how the mentioned file is loaded or saved. Is it a txt file? What is the logic that saves the content to file?
I suggest debugging the project and try finding out why these tags are getting inserted.
Currently I am unable to determine how the Editor is used and what is its purpose in the scope of the built application, so that I could be able to provide any suggestion for tools or approaches.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.