Convert special chars to HTML entities, without changing tags and parameters

I’m using FreeTextBox editor to get some HTML created by users.
The problem with this is this editor is not converting special chars in HTML entities at exception of “<>”. I cannot use theHTML = Server.HtmlEncode(theHTML), because it converts all the HTML including tags and parameters, and I don’t want to create an unfinishable list of theHTML.Replace lines.