Comments (2)
Unfortunately there is no feature to do this. The HTML5 standard allows single, double and no quotes on attributes, so there is nothing wrong with them.
The HtmlAgilityPack does seem to be able to read and control the quote type on attributes using HtmlAttribute.QuoteType
, so I think this feature could be developed.
from htmlrulesanitizer.
This feature was implemented in version 1.8 and is now available
from htmlrulesanitizer.
Related Issues (20)
- HtmlRuleSanitizer expects HtmlAgilityPack to be exact 1.4.9 HOT 2
- em tag gets deleted completely HOT 1
- Special Characters, Space and Links HOT 2
- Assembly is not strongly named (signed) HOT 2
- Multi-targeted assemblies and NuGet package HOT 3
- Question: allow iframe with specific domain? HOT 6
- sanitizer.Tag("p").RemoveEmpty(); <p> </p> results in <p> </p> HOT 3
- Error when parsing mailto href attributes HOT 5
- Multithreaded use of .Sanitize ? HOT 1
- Missing documentation in NuGet packages HOT 1
- Compare with HtmlSanitizer package HOT 2
- Fails a basic test case HOT 3
- How to report security issues HOT 1
- [BREAKING] No longer possible to override UrlCheckerAttributeSanitizer or construct it instance HOT 7
- Enable and implement nullable references in project
- Implement support for custom element sanitizers
- Invalid HTML output when using void tags HOT 5
- Remove dangerous characters like closing tag or opening tag HOT 8
- Make allowed url schemes configurable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlrulesanitizer.