Parse ATOM rss feed and remove html tags
问题 am developing this code using powershell. I need to be able to extract the html tags. Invoke-WebRequest -Uri 'https://psu.box.com/shared/static/jf36ohodxnw7oemghsau1t7qb0w4y708.rss' - OutFile C:\users\anr2809\Documents\alerts.txt [xml]$Content = Get-Content C:\users\anr2809\Documents\alerts.txt -Raw $Regex = '(?s)SE1046.*?Description := "(?<Description>.*?)"' If ($Content -match $Regex) { "Description is '$($Matches['Description'])'" # do something here with $Matches['Description'] } Else {