I have a PS Script that should generate a html file with add-content $datei works fine but here is the Problem, I have something like that:
"some html... <textarea id="Text$counter" style="width: 100%; height: 100%;"></textarea> some html... <span>$NameEdit</span> some html... document.getElementById('Text$counter').select(); some html... " | add-content $datei so i have multible double and single qoutes and multible variables in the html part but i cant find out how to escape all that stuff right that the script runs as expected AND fill in the variables in the html code
im using PS 7.0