Comments (7)
From the sanitizer part it should be possible to declare custom schemes (like xmpp:
) already with https://github.com/TYPO3/html-sanitizer/blob/main/src/Behavior/Attr/UriAttrValueBuilder.php#L57-L62
I don't know (yet), what probably is missing on the TYPO3 core side.
I'll add test cases soon for xmpp:
in particular to this library based on your provided examples.
from html-sanitizer.
The change allows using any value that stars with xmpp:
in any href
attribute. I don't think adding more tests is necessary here.
from html-sanitizer.
@ohader: Have you progressed on this ticket?
from html-sanitizer.
@Neustradamus Not yet, I did not find a good way to add arbitrary schemes (e.g. https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml) in a flexible way...
from html-sanitizer.
I checked IANA assignments and added some additional schemes. Unofficial URIs like whatsapp:
, tg:
etc. are supposed to be redirected through web APIs like api.whatsapp.com
or t.me
.
from html-sanitizer.
@ohader: Thanks :)
In the test part, you have specify only "message" but all these cases will be good?
from html-sanitizer.
@ohader: Thanks a lot for your improvements :)
from html-sanitizer.
Related Issues (20)
- Add Sanitizer deprecations
- Argument 1 passed to TYPO3\HtmlSanitizer\Behavior\Tag::addAttrs() must be of the type array, object given HOT 3
- Introduce PHPStan
- Allow RFC 2392 compliant URI schemes
- Add support for [type], [start] and [reversed] attributes for the ol tag HOT 3
- Add different protocols for href such as webcal or ftp HOT 3
- tx_form_formframework not working in TYPO3 11 HOT 1
- spamProtectEmailAddresses - JavaScript atSubst and lastDotSubst replacements broken HOT 1
- center-tag missing, too HOT 4
- Allow adding allowed values to existing attributes HOT 6
- iFrame is escaped in output and not working anymore HOT 4
- ALLOW_CHILDREN and PURGE_WITHOUT_ATTRS can't be set at the same time HOT 3
- Problem: No email from my.typo3.org HOT 1
- Introduce TagHandler
- that is not single HOT 1
- Add possibility to control comments and CDATA section
- Add possibility to declare and apply presets to behavior
- Rename NodeException to ReplaceDomNodeException
- Postpone Sanitizer deprecations
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 html-sanitizer.