Comments (3)
Version 1.1.2 seems safe
"Seems safe", two words any web developer should be rightfully terrified of đą
I think the correct fix for this is to explicitly state in documentation that the library is almost certainly not XSS-safe, most likely never will be, and that it's up to the consumer to properly mitigate XSS by sanitizing the output of anchorme
if calling it on untrusted user input. There are plenty of well-tested solutions out there for doing this, such as DOMPurify
.
See showdown's article on XSS, which they link to from their README, for a great example of how to document this stuff.
from anchorme.js.
from anchorme.js.
Version 1.1.2 seems safe
from anchorme.js.
Related Issues (20)
- Extensions prevents from parsing some urls and emails
- Malformed links if they contain german umlaute
- `https://âĻa.com` is detected as a url, but it's invalid to URL
- security contact HOT 1
- anchorme fails to curretly hyperlink URLs having < and > in them HOT 1
- anchorme is not a function HOT 4
- Infinite Recursion browser tab crashes HOT 3
- Urls with localhost:port number will not work HOT 1
- link strings surrounded by underscore don't always work HOT 1
- URLs ending with hyphen exclude hyphen HOT 1
- The content came with Img tag and this library wrap img src link anchor tag HOT 1
- Imcompatibility with older iOS systems HOT 5
- Reference to mocha in index.d.ts HOT 2
- Cannot import correctly under TypeScript Node 16 module resolution HOT 2
- Query string on url is not supported HOT 1
- Invalid regular expression on Safari iOS < 16.4 HOT 6
- lookbehind not supported on safari < 17 HOT 3
- Not recognizing query params when using: `...)?...`
- attribute position
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 anchorme.js.