logical.escapeHtmlfunctionno test imports itfunction escapeHtml(s: string): stringText made safe to put in HTML, in text and in a double-quoted attribute.
The site of a report (0002-report-site FR-002 to FR-006): an index of how each requirement stands with the counts of every standing and grade (never a percentage), a page for each requirement with its objectives, the evidence behind each with its origin, grade and age, and who answers for it, the stylesheet, and the data the pages are made from as JSON. The pages are plain HTML with one stylesheet: no script, no font or image or any other address, so that the report can be opened from a file, kept as evidence and read offline. Every text is escaped. The same input gives the same bytes.
import { escapeHtml } from "./site.ts";
escapeHtml("<b>"); // "<b>"logical.escapeHtmlfunctionno test imports itfunction escapeHtml(s: string): stringText made safe to put in HTML, in text and in a double-quoted attribute.
logical.pageNamefunctionno test imports itfunction pageName(requirement: string): stringThe file name of a requirement's page: only letters, digits, dots, dashes and underscores survive.
logical.buildSitefunctionno test imports itfunction buildSite(input: ReportInput): SiteThe files of the site of a report.
escapeHtmlfunctionfunction escapeHtml(s: string): stringText made safe to put in HTML, in text and in a double-quoted attribute.
pageNamefunctionfunction pageName(requirement: string): stringThe file name of a requirement's page: only letters, digits, dots, dashes and underscores survive.
buildSitefunctionfunction buildSite(input: ReportInput): SiteThe files of the site of a report.