# Inline HTML 01

Inline HTML 01 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: `Example-InlineOtherHTMLFile.ps1`

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

New-HTML {
    New-HTMLSection {
        New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto
    } -HeaderText 'Test'
    New-HTMLSection {
        New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto -Height 1500px
    } -HeaderText 'Test'
    New-HTMLSection {
        New-HTMLFrame -SourcePath "$PSScriptRoot/../Example-Maps/Example-Maps.html"
    } -HeaderText 'Test' -Height 100vh
} -Online -TitleText 'Test Inline' -ShowHTML -FilePath "$PSScriptRoot\Example-InlineHTML01.html" -AddComment


# Modify file
return

function Set-HTMLInline {
    [CmdletBinding()]
    param(
        [string] $FilePath,
        [string] $Search,
        [string] $Replace
    )
    if ($FilePath -and (Test-Path -LiteralPath $FilePath)) {

        # lets get current information about file
        $File = Get-Item -LiteralPath $FilePath

        $LastModified = $File.LastWriteTime

        $FileContent = Get-Content -Raw -LiteralPath $FilePath
        if ($FileContent -notlike $Search) {

        }
        Set-Content -LiteralPath $FilePath -Value $FileContent
        # <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davidjbradshaw/iframe-resizer@4.3.2/js/iframeResizer.contentWindow.min.js"></script>

        # replace modification date:
        $file.LastWriteTime = $lastModified
    }
}

Set-HTMLInline -FilePath "$PSScriptRoot/GPOZaurr.html" -Search 'iframeResizer.contentWindow.min.js' -Replace '<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davidjbradshaw/iframe-resizer@4.3.2/js/iframeResizer.contentWindow.min.js"></script>'
```

<!-- PowerForge markdown artifact sha256:8B9F1843C7B3E30EFEADC245007B0922A35BA8D8CFFA2FF2FB18A3FB5222745D -->
