I have a field which has some mark up in the text eg. <div>, <span> so I need to escape this markup. Is there an easy way to do this in PnP PowerShell.
View best response
Yes, there is !
$value = [System.Net.WebUtility]::HtmlEncode($fieldValue.Value)