# Example 19

Example 19 on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example19-NewLineAndInvokeHTML`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

$Test1 = [PSCustomobject] @{
    'First column' = 'Test'
    'Second column' = '<br>MyIdol<br><strong>Test</strong>'
    'Example' = "`r`nTesting how PowerShell NewLines are treated $([Environment]::NewLine) Or how HTML tags are treated<br> Get it?"
}

New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example19.html -Verbose {
    New-HTMLSection -HeaderText 'Showing how tags are invoked. So BR and other tags like A HREF should be converted' {
        New-HTMLTable -DataTable $Test1 -PagingOptions @(50, 100, 150, 200) -Filtering -FilteringLocation Bottom -InvokeHTMLTags
    }
    New-HTMLSection -HeaderText 'Showing how PowerShell new lines such us `r`n and [Environment]::NewLine are changed into new lines in HTML' {
        New-HTMLTable -DataTable $Test1 -PagingOptions @(50, 100, 150, 200) -Filtering -FilteringLocation Bottom
    }
    New-HTMLSection -HeaderText 'Showing Same data but with Disable PowerShell NewLine' {
        New-HTMLTable -DataTable $Test1 -PagingOptions @(50, 100, 150, 200) -Filtering -FilteringLocation Bottom -DisableNewLine
    }
    New-HTMLSection -HeaderText 'Showing Same data but with Disable PowerShell NewLine but with InvokeHTMLTags' {
        New-HTMLTable -DataTable $Test1 -PagingOptions @(50, 100, 150, 200) -Filtering -FilteringLocation Bottom -DisableNewLine -InvokeHTMLTags
    }

} -ShowHTML
```

<!-- PowerForge markdown artifact sha256:14455E5A334478F58CCED6BF0FDC364838198DFAD3725318A2E5B959B8376024 -->
