Skip to content

Commit c243561

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: OpenGraph.get_HTML ( Fixes #8 )
1 parent 75dada4 commit c243561

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

OpenGraph.types.ps1xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- Generated with EZOut 2.0.6: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
2+
<Types>
3+
<Type>
4+
<Name>OpenGraph</Name>
5+
<Members>
6+
<ScriptProperty>
7+
<Name>HTML</Name>
8+
<GetScriptBlock>
9+
@(if ($this -is [Management.Automation.PSModuleInfo]) {
10+
if ($this.Description) {
11+
"&lt;meta name='description' content='$([Web.HttpUtility]::HtmlAttributeEncode($this.Description))' /&gt;"
12+
}
13+
if ($this.PrivateData.PSData.IconUri) {
14+
15+
}
16+
} else {
17+
foreach ($property in $this.PSObject.Properties) {
18+
if ($property.Name -match ':') {
19+
"&lt;meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($property.Value))' /&gt;"
20+
}
21+
}
22+
}) -join [Environment]::Newline
23+
24+
</GetScriptBlock>
25+
</ScriptProperty>
26+
</Members>
27+
</Type>
28+
</Types>

0 commit comments

Comments
 (0)