11-27-2008
Downloads: 380
File size: 151 B
Views: 3,829
Embed
 |
Convert Text in HTML-compliant Text |
- function Escape-String($name) {
- [System.Uri]::EscapeDataString($name)
- }
-
- Escape-String "Hello World"
- Escape-String "<h1>Hello World</h1>"
The function Escape-String automatically converts raw string data into an encoded format. All special characters that may be misinterpreted by HTML pages are converted into safely encoded text.