Comment HTML cleanup.
Added replication events.