HtmlLinkTransformer Class

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll

Definition

Represents a text transformer that processes URLs in HTML content.
public sealed class HtmlLinkTransformer : ITextTransformer
Inheritance
Implements

Remarks

The HtmlLinkTransformer class provides functionality for transforming URLs within HTML content. It processes HTML attributes that commonly contain URLs, such as href and src, replacing the URLs according to the provided IUrlTransformer.

This transformer is particularly useful when generating HTML documentation where URLs need to be adjusted based on output structure or when implementing cross-references between documentation pages.

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

HtmlLinkTransformer()Initializes a new instance of the HtmlLinkTransformer class.

Methods

Transform(TextReader, TextWriter, IUrlTransformer)Transforms HTML content by updating URLs according to the specified URL translator.

See Also