I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in a normal Team Site where it says:
So I use the following code:
web.SiteGroups.Add("ts01 Administrators", owner, null,
"Use this group to grant people administrative permissions to the SharePoint site: <a href=\"http://ts01\">ts01</a>");
where "owner" is an instantiated, not null SPPrincipal.
The result I get is not the intended one. SharePoint seems to HtmlEncode everything I send in, and rightly so. But when I create a group using the GUI I can include links in the description. So what's the difference? Has anyone encountered this problem?