Title: ComObject Member-access enumeration · Issue #19854 · PowerShell/PowerShell · GitHub
Open Graph Title: ComObject Member-access enumeration · Issue #19854 · PowerShell/PowerShell
X Title: ComObject Member-access enumeration · Issue #19854 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement Coming from Stackoverflow question: Extract text from html with powershell And probably ties into #4553 (which I simply don't fully understand) Just like Member-Access Enumeration for native .Net ...
Open Graph Description: Summary of the new feature / enhancement Coming from Stackoverflow question: Extract text from html with powershell And probably ties into #4553 (which I simply don't fully understand) Just like Me...
X Description: Summary of the new feature / enhancement Coming from Stackoverflow question: Extract text from html with powershell And probably ties into #4553 (which I simply don't fully understand) Just lik...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19854
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ComObject Member-access enumeration","articleBody":"### Summary of the new feature / enhancement\r\n\r\nComing from Stackoverflow question: [Extract text from html with powershell](https://stackoverflow.com/questions/75264781)\r\nAnd probably ties into #4553 (which I simply don't fully understand)\r\n\r\nJust like [Member-Access Enumeration ](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_member-access_enumeration) for native .Net and PowerShell objects, I would expect to be able to enumerate ComObject members (`System.MarshalByRefObject`?) in a similar way:\r\n\r\n```PowerShell\r\n$String = '\u003cdiv\u003eSome text\u003c/div\u003e'\r\n$Unicode = [System.Text.Encoding]::Unicode.GetBytes($String)\r\n$Html = New-Object -Com 'HTMLFile'\r\n$Html.write($Unicode)\r\n$Html.getElementsByTagName('div').innerText\r\n```\r\n\r\n### Expected\r\n```PowerShell\r\nSome Text\r\n```\r\n\r\n### Actual\r\nNo output\r\n\r\n### Workarrounds\r\n```PowerShell\r\n@($Html.getElementsByTagName('div')).innerText\r\n$Html.getElementsByTagName('div') |% { $_.innerText }\r\n```\r\n","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2023-06-24T07:44:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/19854/PowerShell/issues/19854"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c5167dec-96d2-8afb-a40c-635fd57146d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C19E:24FAA0:16C9538:20B22A5:6A58B9EE |
| html-safe-nonce | abd3fba998b3f4758b68d05910ca3d9b1b5d8c139943759e63bd5548468b0e83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTlFOjI0RkFBMDoxNkM5NTM4OjIwQjIyQTU6NkE1OEI5RUUiLCJ2aXNpdG9yX2lkIjoiMTU1MTEyMTQwMDg4ODUwOTI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d0d19520bed29e9eaded55f767f1a047f89aa729585f4afacf8b75500e3c2952 |
| hovercard-subject-tag | issue:1772516950 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19854/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c0c5353c2ab59c95ec4253170bc00ed5054a80874232a5c57548f443f42bd3b/PowerShell/PowerShell/issues/19854 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c0c5353c2ab59c95ec4253170bc00ed5054a80874232a5c57548f443f42bd3b/PowerShell/PowerShell/issues/19854 |
| og:image:alt | Summary of the new feature / enhancement Coming from Stackoverflow question: Extract text from html with powershell And probably ties into #4553 (which I simply don't fully understand) Just like Me... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width