mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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. |
||
---|---|---|
.. | ||
lib | ||
tests | ||
index.js |