Skip to main content

checkContent

return W3C Validation Markup Service response from raw content.

interface responseMessage {
type: string;
subType?: string;
message: string;
lastLine?: number;
lastColumn?: number;
firstColumn?: number;
extract?: string;
hiliteStart?: number;
hiliteLenght?: number;
}

checkContent(content: string, contentType?: string): Promise<responseMessage[]>