PSWriteHTML is PowerShell Module to generate beautiful HTML reports, pages, emails without any knowledge of HTML, CSS or JavaScript. To get started basics PowerShell knowledge is required.
I'm trying to include line breaks in table cells (
) to make them multi-line. I've tried adding , ,
tags, but they just end up being rendered as text.
Using "n" and "r" kinda works when inspecting table using browser developer tools - I can see that both text and html code is breaking my text correctly, but it is still being rendered in one long line in table.
I have tried adding -Wordbreak to Table and-NewLine to TableOption cmdlets, but they had no effect.
Hi
I'm trying to include line breaks in table cells (
,
,
tags, but they just end up being rendered as text.
Using "
n" and "
r" kinda works when inspecting table using browser developer tools - I can see that both text and html code is breaking my text correctly, but it is still being rendered in one long line in table.I have tried adding
-Wordbreak
toTable
and-NewLine
toTableOption
cmdlets, but they had no effect.Thanks
If you want to play with Html in the tables you need to use
InvokeHTMLTags
switch. Otherwise, it treats HTML tags as text.Natively you can do it using the proper new line PowerShell way.
Thank you so much, it works great @PrzemyslawKlys
Here's what I ended up using: