Skip to content

[BUG] New-PnPGroup Description HTML gets encoded #3797

@NoralK

Description

@NoralK

Reporting an Issue or Missing Feature

When creating a New-PnPGroup that has HTML in the Description the HTML gets encoded.

We are a GCC Tenant.

Expected behavior

HTML should not be encoded.

Actual behavior

HTML is being encoded

Steps to reproduce behavior

Here is the command:

New-PnPGroup -Title "$($SiteName) Site Designers" `
    -Description "Use this group to grant people full control permissions to the SharePoint site: <a href=""/sites/$($Site)"">$($SiteName) Site</a>" `
    -Owner "$($SiteName) Site Owners"

However, when I perform the Set-PnPGroup command with the exact same information it works.

Set-PnPGroup -Identity "$($SiteName) Site Designers" `
    -Description "Use this group to grant people full control permissions to the SharePoint site: <a href=""/sites/$($Site)"">$($SiteName) Site</a>"

What is the version of the Cmdlet module you are running?

2.3.0 inside VS Code
1.12.0 inside PS-ISE
Same behavior in both versions

Which operating system/environment are you running PnP PowerShell on?

  • [ X ] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions