have a look at this regex approach:
for the substitution any needed string (e.g. <br>
, Environment.NewLine, combinations… can be used
we also handle defensive any occurrences of spaces between the tags.
Pattern:
(?<=>)(\s*?)(?=<Details)
Regex Help: - Regex.Replace(…
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum