Replace Multiple Strings In String (Заменяне на няколко думи в стринг)

PHOTO EMBED

Mon May 15 2023 06:09:34 GMT+0000 (Coordinated Universal Time)

Saved by @HristoT

var replacements = new Dictionary<string, string>
{
    { "&euro;", "€" },
    { "&sect;", "§" },
    { "&nbsp;", " " },
    { "&gt;", ">" },
    { "&lt;", "<" },
    { "&amp;", "&" },
};


var messageWithReplacedValues = replacements.Aggregate(/* the string */, (current, replacement) => current.Replace(replacement.Key, replacement.Value));
content_copyCOPY