Skip to content

RFC001 : Consider adding a function to export HTML documents and create a PSHTML object. #156

@Stephanevg

Description

@Stephanevg

Currently each HTML document is exported via the following code on the user's side:

$PSHTMLContent > "Example6.html"

As this works fine, I would like to offer the ability to the end users to use a more 'standard' way of creating such a a document.

I would like to discuss the introduction of an export function, that would allow the following things:

  • Have a uniformly way to export HTML documents back to the parser (just returning the HTML content)
  • Save the HTML page to a specific location on disk

I would imagine something along these lines:

Out-PSHTMLDocument -Path [String/FileInfo] 

Options

Optionally, I would like to discuss the following:

  • Have an overall PSHTML Object that contains the HTML stucture tree
  • Have the classes, ID's and attributes

I would imagine a structure along these lines:

PSHTML.Document

Postion Type Id Class Attributes
[int] [String]Div,Body, etc.. [String]html id [String[]] html class [HashTable] Attributes

Perhaps also think of adding a content on the object, which would contain the content of each HTML tab part. It could potentially, also contain another PSHTML.Document, for nested elements.

Postion Type Id Class Attributes Content
[int] [String]Div,Body, etc.. [String]html id [String[]] html class [HashTable] Attributes [PSHTML.Document] or [String]

Some sources for inspiration for the exports:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions