-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html5 <video> tag support #106
Comments
Yes, in principle we should accept this tag, but we'll need to carefully audit it for XSS possibilities. People who want to live dangerously can perhaps just add video manually for now. |
how to add video manually?? i use in Yii2 |
We just try to allow video-tags in limesurvey using htmlpurifier to prevent XSS-attacks. So the question above is highly responsible for us. Is there an answer to "how to add video manually"? |
For a hacky but probably will work solution, look at http://htmlpurifier.org/docs/enduser-youtube.html If you want to support it as a proper tag, look at http://htmlpurifier.org/docs/enduser-customize.html |
Thanks for your reply. Unfortunately: LimeSurvey use an array to configure htmlpurifier. Is it possible to add video tag via the configuration array (not via the configuration object)? We tried it with
but nothing works. |
I just follow the
|
https://github.com/xemlock/htmlpurifier-html5 adds HTML5 definitions to this lib |
Is there still any hope to implement this feature request soon? I haven't the proper experience to contribute the code but I found it a vital thing in 2022 |
@mbnoimi it's implemented in https://github.com/xemlock/htmlpurifier-html5 |
Sorry for my mistake. I didn't notice that this repository doesn't belong to NextCloud (I came from this discussion) |
htmlpurifier remove the video tag, could you allow this tag?
Maybe you can draw inspiration from this piece of code: https://github.com/kennberg/php-htmlpurfier-html5/blob/master/htmlpurifier_html5.php#L59
Related issue: Exercise/HTMLPurifierBundle#34
Thanks for this geat lib.
The text was updated successfully, but these errors were encountered: