Concerns when uploading html documents to an app

Hiya,

I haven’t dealt developed many applications in any language so I’m a bit
clueless as to the aspects I need to be thinking about when uploading to
my app. I have the upload in place and it uploads the files chosen to
the file system, my original plan being .html and .txt allowed, but oce
uploaded users have the opportunity to edit the upload in fckeditor,
which works fine for .txt (except all specing and new lines etc have
been removed) but the .html files appear static and cant be edited.
Would the best way to handle these documents be stripping any html tags
and making them plain text or unifying them in some other way possibly?

Any advice is brilliant, thank you!
Bex