Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.4.1
Mobile
one year ago
Test name Executions per second
Dompurify 2.3.3 5082.5 Ops/sec
Sanitize-html 1.27.5 28913.7 Ops/sec
Js-XSS Latest 32735.5 Ops/sec
HTML Preparation code:
Tests:
  • Dompurify 2.3.3

  • Sanitize-html 1.27.5

  • Js-XSS Latest