Comments (1)
The definition of what is sane to allow is subjective. This package aims to make injection of rendered markdown safe.
Hence, why the README says:
This package uses an HTML5 parser to build-up an in-memory DOM tree and filter elements and attributes, in-line with rules employed by GitHub when sanitizing GFM (GitHub Flavored Markdown).
It's also useful for other things. But it doesn't aim to be anything that can possibly be considered safe by some definition.
I just sort of decided to use the same subset as github, it's a reasonably sane subset, as in it's hard to accidentally completely mess up the layout of the page the HTML is injected into.
(I'm not confident that it's impossible to mess up the layout of the embedding page).
from dart-neats.
Related Issues (20)
- Doesn't work with Riverpod HOT 4
- router.get method should be able to pass context HOT 6
- add support to execute task in isolated (in background outside the main thread) HOT 3
- Migrate to use same pattern as UrlPattern HOT 3
- get current attempt times HOT 4
- Should replace | with : in '/user/<userId|[0-9]+>', : looks more like a natural constraint symbol HOT 1
- consider updating the 'repository' pubspec fields with the repo+path_in_the_repo information HOT 4
- Put `lib/` directory into root of vendored package? HOT 4
- package retry -- terminology / semantics HOT 2
- consider this as a host for package:directories? HOT 5
- move top level pubspec into the tool/ dir?
- Enabling retry on any type of thrown errors HOT 2
- Callback for time left until next task. HOT 3
- Allow more/custom labels in `encodePemBlock` HOT 4
- Update to make RetryOptions final is breaking mocks HOT 2
- Could not start() after stop() HOT 1
- Proposal `obtain` / `getOrCreate` function HOT 1
- The updated RFC allows relative URLs in the `location` header, but the package rejects them.
- new update issue HOT 1
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 dart-neats.