Skip to content
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

Media rendering #11

Open
radiac opened this issue Jul 30, 2013 · 0 comments
Open

Media rendering #11

radiac opened this issue Jul 30, 2013 · 0 comments

Comments

@radiac
Copy link
Owner

radiac commented Jul 30, 2013

I plan to address the three rendering issues in the roadmap by contributing a patch to bleach to support tag callables (in a similar way to their attribute callables).

That should allow us to efficiently convert and sanitise img tags and youtube embeds into a tags with the resource address on the href, specifying the media type as a data-yarr-media="(img|youtube)" attribute.

The javascript can then lazy-load them, improving render times and allowing future support for safely allowing arbitrary embeds.

(Issue opened in case it helps anyone who gets on to this before me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant