Confirm that JavaScript is discarded by default and is available if the formatting is disabled.
Testing done
Confirmed tests pass with Java 21 on Linux.
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
Test getText() with isDisableFormatHTML
Confirm that JavaScript is discarded by default and is available if the formatting is disabled.
Testing done
Confirmed tests pass with Java 21 on Linux.