Run details:
Mozilla/5.0 (Linux; Android 8.0.0; G3121) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.215 Mobile Safari/537.36 OPR/73.2.3844.69974
Opera Mobile 73
Android 8.0.0
Mobile
one year ago
Test name Executions per second
Dompurify 2.3.3 64.5 Ops/sec
Sanitize-html 1.27.5 901.9 Ops/sec
Js-XSS Latest 2473.3 Ops/sec
HTML Preparation code:
Tests:
  • Dompurify 2.3.3

  • Sanitize-html 1.27.5

  • Js-XSS Latest