Replace brackets with HTML encoded brackets