Comments (4)
Adding support for frozenset
in PyO3/pyo3#3632
from nh3.
also MappingProxyType
can be allowed instead of dictionary
from nh3.
The TypeError
comes from PyO3. It’s not clear to me from the PyO3 arg docs if there’s an easy way to allow all kinds of mappings or sets and have PyO3 convert them.
from nh3.
Thank you! Do you think it's possible to add support of MappingProxyType? As I understand it's only way to have read-only dictionaries without adding third-party libraries.
from nh3.
Related Issues (20)
- An API for providing allowed tags and attributes? HOT 1
- Would it be possible to disable adding of rel="noopener noreferrer"? HOT 3
- Feature goals compared to Bleach (/ full ammonia API)? HOT 18
- Feature: allow generic attribute prefixes, e.g. data-*
- Pylint false positive: no name in module HOT 1
- Couldn't find a setup script in /tmp/easy_install HOT 1
- [Question] How allow tg://user?=id tag in href a tag?
- How disable to remove unsupported tags? HOT 1
- clean_content_tags doesn't seem to work on tags other than <script> or <style> HOT 1
- Using default values in .clean() method produces unexpected output HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 3
- Alias for clean_text function: escape? HOT 1
- nh3 clean doesn't include html, head or body tags even when included in ALLOWED_TAGS HOT 1
- PanicException if allowed attribute is missing HOT 2
- Access to the default URL schemes HOT 1
- Encoding issues with method clean() HOT 1
- Aborted tests with Python 3.13.0b2 HOT 1
- Failed building wheel on linux HOT 1
- Memory leak
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 nh3.