to escape HTML contents and tags attribute values for "&" , """ , "'" , ">" , "<"
escaping the contents between HTML tags
escaping the tags attribute values
appending the "&",""e;","#39;","<",">"
avoiding the "&",""e;","#39;","<",">" from escaping twice
replace character "&" , """ , "'" , "<" , ">" with "&",""e;","#39;","<",">"