Skip to content

Conversation

@PrzemyslawKlys
Copy link
Member

  • Ensure HTML characters are escaped to prevent breaking JavaScript code.
  • This change applies to both data insertion scenarios in the New-HTMLTable function.

Should fix #476

…ot set

* Ensure HTML characters are escaped to prevent breaking JavaScript code.
* This change applies to both data insertion scenarios in the `New-HTMLTable` function.
…with tags

* Introduced a new example script to demonstrate the usage of `New-HTMLTable` with HTML tags.
* The example includes options for JavaScript data storage and formatting.
* Updated the data insertion logic to properly escape the '>' character in addition to '<'.
* This change prevents potential issues with JavaScript code execution when HTML tags are included in the data.
@PrzemyslawKlys PrzemyslawKlys merged commit 321bec6 into master Sep 4, 2025
5 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the FixForJavascript branch September 4, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datastore javascript display issue when using test "<xxxx>"

2 participants