This is very simple modification in your code but it will be big task if you have very large html file.
Here is code to allow you post your html code in blog.Replace
< with <
> with >
& with &
with
¢ with ¢
£ with £
¥ with ¥
€ with €
§ with §
© with ©
® with ®
> with >
& with &
with
¢ with ¢
£ with £
¥ with ¥
€ with €
§ with §
© with ©
® with ®
In standard html, &s; is always represented by &s; .Therefore you will have to use html knowledge.Replace all html character with entity name.That's it.If you want to write entity name in blog post then you have to write entity name in this way & entity name.
If you face problem,contact me.I will resolve your issue.