escape API docs when generating HTML