Seeing "CDATA" blocks in PRE code snippets

This topic contains 6 replies, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 year, 9 months ago.

  • Author
    Posts
  • #26499
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    I'm seeing CDATA information in the code snippets, take a look at this post:

  • #26503
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Sorry, Rob. Perfect code formatting is hard when anyone can add code.

  • #26562
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    Just wanted to ensure it was known so that if it could be corrected an admin was aware of it. Thanks.

  • #26659
    Profile photo of Don Jones
    Don Jones
    Keymaster

    As a note, all that string concatenation isn't strictly necessary. PowerShell replaces variables with their values inside double quotes. Just makes reading the code a little easier.

    The help says that -EmailAddresses accepts one object of the type ProxyAddressCollection. You're providing a single, comma-delimited string as a single value within a hash table.

    One way to do this:

    $foo = get-mailbox bsuneja
    $foo.EmailAddresses += "bsuneja@e14labs.co","bharat.suneja@e14labs.com"
    $foo | set-mailbox
    
  • #26660
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Hmm. It's something about the @ sign in a PRE block. I might be able to filter it.

  • #26661
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Ah. Yeah. This is WordPress trying to obfuscate the e-mail address and getting hung up in the code formatting.

  • #26664
    Profile photo of Don Jones
    Don Jones
    Keymaster

    This was a CloudFlare setting. It's adjusted; it'll take some time to actually start working.

You must be logged in to reply to this topic.