When you are creating publishing page programmatically, it is best practice to remove the special characters from the page name.

public string Strip(string text)
{
return Regex.Replace(text, @”<(.|\n)*?>”, string.Empty);
}

Advertisements