Also update the hook logs to escape the contents properly, as the :plain filter does not do html escaping.