---
title: "Comment by JustBry on \"Extracting HTML table from a web page (or HTML file) and converting it into PowerShell object\" | Hashnode"
description: "This looks great; think this will work on html email that contains a table? ~JB"
url: "https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09/comment/62af74d40924134a8048a737"
---

[Discussion](https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09)

Comment [Extracting HTML table from a web page (or HTML file) and converting it into PowerShell object](https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09)

[JustBry](https://hashnode.com/@JustBry)

[Jun 19, 2022](https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09/comment/62af74d40924134a8048a737)

This looks great; think this will work on html email that contains a table?

~JB

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Jun 19, 2022](https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09/comment/62af74d40924134a8048a737#reply-62af778d0924134a8048a78f)

I don't see why it shouldn't. If you will be able to extract that HTML from the email body.

[JustBry](https://hashnode.com/@JustBry)

[Jun 19, 2022](https://hashnode.com/posts/extracting-html-table-from-a-web-page-or-html-file-and-converting-it-into-powershell-object/61b0f379ccd13f578941ec09/comment/62af74d40924134a8048a737#reply-62af78b20924134a8048a7a9)

Tried and get the following:

"At line:103 char:73

-   ... tent = Invoke-WebRequest -Method GET -Headers $Headers -Uri <!DOCTYPE ...
-   ~ The '<' operator is reserved for future use.

At line:118 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:126 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:134 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:142 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:151 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:165 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

At line:173 char:8

-   @media only screen and (max-width: 640px) {
-   \~~~~ Unexpected token 'only' in expression or statement.

Not all parse errors were reported. Correct the reported errors and try again."
