Last active
August 29, 2015 14:26
-
-
Save MattHodge/af0832fd863745168e5d to your computer and use it in GitHub Desktop.
Escaping PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$title = "This is Matt's Page" | |
$price = 20 | |
$color = 'red' | |
$html = | |
" | |
<HTML> | |
<HEAD> | |
<TITLE>$($title)</TITLE> | |
<BODY> | |
<font color=""$($color)""> | |
The price for this advice is `$$($price) please.<P> | |
The price for bwminstead is `$100 though... <P> | |
Another price might be $10000 moneys. | |
</BODY> | |
</HTML> | |
" | |
Set-Content -Path 'c:\test\page.html' -Value $html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment