Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L289)][[2](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L320)][[3](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/board-renderer.ts#L85)][[4](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L579)][[5](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L663)][[6](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L696)][[7](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L12)][[8](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L81)][[9](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L162)][[10](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L271)][[11](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L643)][[12](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L672)][[13](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L673)][[14](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L781)][[15](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/EditPillModal.ts#L149)][[16](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/EditPillModal.ts#L166)][[17](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/EditButtonModal.ts#L88)][[18](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/EditButtonModal.ts#L153)][[19](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/DataBlockConfigModal.ts#L90)][[20](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/DataBlockConfigModal.ts#L585)][[21](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/DataBlockConfigModal.ts#L895)][[22](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/AddButtonModal.ts#L87)][[23](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/AddButtonModal.ts#L149)][[24](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/utils/helpers.ts#L560)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/board-renderer.ts#L93)][[2](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L462)][[3](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L469)][[4](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L470)][[5](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L471)][[6](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L526)][[7](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L625)][[8](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L626)][[9](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L627)][[10](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L628)][[11](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L629)][[12](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L630)][[13](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L631)][[14](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L665)][[15](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/codemirror.ts#L698)][[16](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L89)][[17](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L131)][[18](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L132)][[19](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L133)][[20](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L138)][[21](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L139)][[22](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L140)][[23](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L284)][[24](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/field-config.ts#L287)][[25](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L153)][[26](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L212)][[27](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L217)][[28](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L242)][[29](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L244)][[30](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/ui/components/settings-sections.ts#L524)] and more :You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.




---

### Optional

[[1](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L145)][[2](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L146)][[3](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L152)][[4](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L203)][[5](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L219)][[6](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L220)][[7](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L223)][[8](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L253)][[9](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L254)][[10](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L279)][[11](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L280)][[12](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L282)][[13](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L283)][[14](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L285)][[15](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L295)][[16](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L296)][[17](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L321)][[18](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderer.ts#L330)][[19](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/main.ts#L22)][[20](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/main.ts#L121)][[21](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/javascript-executor.ts#L8)][[22](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/javascript-executor.ts#L18)][[23](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/javascript-executor.ts#L19)][[24](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/utils/javascript-helper.ts#L134)][[25](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/DataBlockRenderer.ts#L123)][[26](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/base-renderer.ts#L41)][[27](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/base-renderer.ts#L43)][[28](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/board-renderer.ts#L15)][[29](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/gallery-renderer.ts#L9)][[30](https://github.com/majd3000/datablock/blob/ca111c045f4bcad65262e9242ab3708f23db6819/src/renderers/gallery-renderer.ts#L10)] and more :Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.