We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e45e3 commit 75dada4Copy full SHA for 75dada4
Types/OpenGraph/get_HTML.ps1
@@ -0,0 +1,14 @@
1
+@(if ($this -is [Management.Automation.PSModuleInfo]) {
2
+ if ($this.Description) {
3
+ "<meta name='description' content='$([Web.HttpUtility]::HtmlAttributeEncode($this.Description))' />"
4
+ }
5
+ if ($this.PrivateData.PSData.IconUri) {
6
+
7
8
+} else {
9
+ foreach ($property in $this.PSObject.Properties) {
10
+ if ($property.Name -match ':') {
11
+ "<meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($property.Value))' />"
12
13
14
+}) -join [Environment]::Newline
0 commit comments