All Projects → mozilla → sanitizer-polyfill

mozilla / sanitizer-polyfill

Licence: MPL-2.0 license
rewrite constructor arguments, call DOMPurify, profit

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sanitizer-polyfill

Webappsec Trusted Types
A browser API to prevent DOM-Based Cross Site Scripting in modern web applications.
Stars: ✭ 424 (+821.74%)
Mutual labels:  polyfill, xss
UrlFirewall
UrlFirewall is a lightweight, fast filtering middleware for http request urls.It supports blacklist, whitelist mode.Supports persisting filter rules to any media.You can use it in webapi, gateway, etc.
Stars: ✭ 64 (+39.13%)
Mutual labels:  webapi
rabbitmq-labs
The source code for my RabbitMQ tutorials.
Stars: ✭ 45 (-2.17%)
Mutual labels:  webapi
webapiclientgenexamples
Code Examples for using WebApiClientGen
Stars: ✭ 43 (-6.52%)
Mutual labels:  webapi
webApi-angularjs
⚓ Definitely simplifies your work with server side & organizes webApi layout to further managing.
Stars: ✭ 15 (-67.39%)
Mutual labels:  webapi
core2
The bare essentials of std::io for use in no_std. Alloc support is optional.
Stars: ✭ 67 (+45.65%)
Mutual labels:  polyfill
draggable-polyfill
🌈a beautify polyfill for native drag!
Stars: ✭ 49 (+6.52%)
Mutual labels:  polyfill
aspnet-core-web-api-using-odata
Demo application of my speech 'Add OData Support to Your Asp.Net Core Web Api' at Dotnet Konf İstanbul. http://dotnetkonf.com/
Stars: ✭ 28 (-39.13%)
Mutual labels:  webapi
RRQMSocket
TouchSocket是.Net(包括 C# 、VB.Net、F#)的一个整合性的、超轻量级的网络通信框架。包含了 tcp、udp、ssl、http、websocket、rpc、jsonrpc、webapi、xmlrpc等一系列的通信模块。一键式解决 TCP 黏分包问题,udp大数据包分片组合问题等。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。
Stars: ✭ 286 (+521.74%)
Mutual labels:  webapi
active-directory-javascript-nodejs-webapi-v2
A small Node.js Web API that is protected with Azure AD v2.0 to validate access tokens and accepts authorized calls using Passport.js
Stars: ✭ 76 (+65.22%)
Mutual labels:  webapi
sdk-oauth
Fitbit SDK example application.
Stars: ✭ 66 (+43.48%)
Mutual labels:  webapi
react-native-console-time-polyfill
console.time and console.timeEnd polyfill for react-native
Stars: ✭ 92 (+100%)
Mutual labels:  polyfill
react-native-audio-polyfill
Audio polyfill for desktop and native.
Stars: ✭ 13 (-71.74%)
Mutual labels:  polyfill
ms-identity-javascript-angular-spa-aspnetcore-webapi
An Angular single-page application that authenticates users with Azure AD and calls a protected ASP.NET Core web API using MSAL Angular
Stars: ✭ 72 (+56.52%)
Mutual labels:  webapi
TraceHub
Centralized and distributed logging for Web applications and services, extending System.Diagnostics and Essential.Diagnostics, providing structured tracing and logging withou needing to change 1 line of your application codes
Stars: ✭ 22 (-52.17%)
Mutual labels:  webapi
FastEndpoints
A light-weight REST API development framework for ASP.Net 6 and newer.
Stars: ✭ 2,386 (+5086.96%)
Mutual labels:  webapi
aspnet-api-versioning
Provides a set of libraries which add service API versioning to ASP.NET Web API, OData with ASP.NET Web API, and ASP.NET Core.
Stars: ✭ 2,396 (+5108.7%)
Mutual labels:  webapi
parsed-html-rewriter
A DOM-based implementation of Cloudflare Worker's HTMLRewriter.
Stars: ✭ 34 (-26.09%)
Mutual labels:  polyfill
seamless-scroll-polyfill
Scroll Behavior polyfill
Stars: ✭ 134 (+191.3%)
Mutual labels:  polyfill
GPONMonitor
GPON Monitoring tool for Dasan Networks GPON OLTs
Stars: ✭ 26 (-43.48%)
Mutual labels:  webapi

Polyfill for the Sanitizer API specification.

The polyfill might provide a shim on top of DOMPurify, that mainly rewrites the specified configuration object into a DOMPurify configuration.

DOMPurify is more interesting than other libraries, as it relies on the current browser's HTML parsing behavior (it is built on top of the NodeIterator interface).

Demo

There's a Demo page that loads all of the polyfill scripts and then does nothing. By default, the polyfill will bail out if you already have a Sanitizer object defined. But that can be easily overridden by clicking the .

It might useful to test Element.setHTML

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].