public String RemoveSpecificTagContent(String content, String tagBegining, String tagEnding)
{
bool foundTags = false;
int startIndex = 0;
int endIndex = 0;
do
{
foundTags = false;
startIndex = content.IndexOf(tagBegining, startIndex);
if (startIndex >= 0)
{
endIndex = content.IndexOf(tagEnding, startIndex + tagBegining.Length);
if (endIndex >= 0)
{
content = content.Remove(startIndex, endIndex - startIndex + tagEnding.Length);
}
foundTags = true;
startIndex = endIndex - (endIndex - startIndex + 1);
}
} while (foundTags);
return content;
}