0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/apps
Aileen Nowak d59f199ee3 🐛 🎨 Improves AMP validation for video and iframe (#7270)
no issue

Video tags aren't supported in Amperize yet, therefore, we strip them out. If a `<video>` tag has nested `<source>` elements, they would stay because they are whitelisted regarding `Sanitize`, as we use them for `<audio>` tags as well.

This PR uses `cheerio` to strip out in `<video>` nested `<source>` tags, without removing the fallback text.
It also removes prohibites attributes for `<amp-iframe>` which are e. g. used by Vimeo embeds.

Removes every kind of inline `style` attributes, as they will cause validation errors as well.
2016-08-25 12:47:28 +02:00
..
amp 🐛 🎨 Improves AMP validation for video and iframe (#7270) 2016-08-25 12:47:28 +02:00
private-blogging Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
subscribers Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
dependencies.js
index.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
loader.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
permissions.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
proxy.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
sandbox.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00