Clean up html- and query table
Do not escape table content if the original content has not changed. See #274.