title: PowerShell Clickable URL creation
body: <p>I'm having trouble to make my URL clickable in HTML. Even when using the escaping character, it's not accepted as valid output. Although, when I try this in the console it gives the desired result:</p>
  
  <pre><code>"&lt;a href=`"$Target`"&gt;$Target&lt;/a&gt;"
  &lt;a href="\\domain.net\share"&gt;\\domain.net\share&lt;/a&gt;
  </code></pre>
  
  <p>Small piece of the code:</p>
  
  <pre><code>$Server = "UNC"
  $Target = "\\domain.net\share"
  
  $HTMLarrayAllPaths = "&lt;li&gt;$(if ($Server -ne "UNC") {"$Server, $Target"} else { "&lt;a href=`"$Target`"&gt;$Target&lt;/a&gt;" })&lt;/li&gt;"
  
  $HTMLarrayAllPaths
  </code></pre>
  
  <p>When trying with <code>Out-String</code> it also ends with an error. I can't seem to find my way around this. Thank you for your advice or help, always appreciated from the nice people here at StackOverflow.</p>