1) multiple   tag ,
tag should be replaced with blank space
2)
... tag should be replaced with strong tag
3)
- $,
- ", "|").Replace("
- ", "").Replace("
}
if (Value.Contains("- "))
- ", "$").Replace("
- ", "").Replace("
}Value = Value.Replace("
", "").Replace("
{
Value = Value.Replace("", "").Replace("
", "");}
}
- ", "$").Replace("
- tag should be replaced with "$" for ordered list and " | " for unordered list
I need to add extra tags and replace with above-mentioned tags with the existing below code :
if (!string.IsNullOrEmpty(Value))
{
if (Value.Contains("
- "))
{
Value = Value.Replace("
Jayraj ChhayaPosted Dec 15, 2023, 9:06 AM
Hi Meghana M,
To replace the specified tags in the text using a C# console application, you can modify the existing code as follows:
In the above code, we first check if the
Valuestring is not null or empty. Then, we perform the existing tag replacements for
and
tags. After that, we add additional tag replacements for,, andtotags.