entity encode preformatted blocks
lint fixes; use template files rather than insane strings