Trying to have a UDElement show text data in a few rows, attempted to do this but it’s all one one line. I’ve also tried using -join with newline characters with no luck.
$Response_data = "There were $hits hits from $total different assessors. `r`n The initial scan of this file was on $scandate"
Set-UDElement -id "OTX_hash_response" -Content {$Response_Data}
Either do a New-UDParagraph for each of your elements, or play around with the HTML " < br > " (without spaces)
Uncertain if new-udlelement strips the html code, if so you can use new-udhtml
I also came across this need in my project and helped myself with New-UDHtml
Here is one code snipped for a pure text and one for a code text (used for JSON text).