Compare-Html

August 3, 2026 ยท View on GitHub

SYNOPSIS

Cmdlet that compares HTML content and returns differences.

SYNTAX

__AllParameterSets

Compare-Html [-Reference] <string> [-Difference] <string> [<CommonParameters>]

DESCRIPTION

Cmdlet that compares HTML content and returns differences.

EXAMPLES

EXAMPLE 1

Compare-Html -Reference $file1 -Difference $file2

PARAMETERS

-Difference

HTML to compare against the reference.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Reference

Reference HTML markup, file path or URL.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • AngleSharp.Diffing.Core.IDiff
  • None