Seeing "CDATA" blocks in PRE code snippets

Welcome Forums Web Site Feedback & Assistance Seeing "CDATA" blocks in PRE code snippets

This topic contains 6 replies, has 2 voices, and was last updated by

 
Keymaster
3 years, 6 months ago.

  • Author
    Posts
  • #26499

    Participant
    Points: 324
    Helping Hand
    Rank: Contributor

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

    Read in a date and time from a string

  • #26503

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

  • #26562

    Participant
    Points: 324
    Helping Hand
    Rank: Contributor

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

  • #26659

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

  • #26661

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

  • #26664

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

The topic ‘Seeing "CDATA" blocks in PRE code snippets’ is closed to new replies.