amperize icon indicating copy to clipboard operation
amperize copied to clipboard

Future handling of not supported HTML tags

Open aileen opened this issue 9 years ago • 4 comments

Hi @jbhannah,

at the moment, we're only transforming a few HTML tags into AMP HTML. I would love to add more transformations (e. g. audio and video) in the near future. Nevertheless, some tags will still remain prohibited by AMP.

Here's the full list of restricted HTML tags by AMP: https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#html-tags

I would like to know, if you are planning to strip out prohibited HTML tags, so the output will be a 100% valid AMP HTML? Maybe with the help of the Sanitize-HTML module?

Would love to hear your opinion about that!

Cheers, Aileen

aileen avatar Aug 15 '16 06:08 aileen

Yes, ideally that will be one thing that this package does. For v1.0.0, its output should be fully valid AMP HTML.

jbhannah avatar Aug 17 '16 14:08 jbhannah

amp twitter might be interesting as well.

kirrg001 avatar May 14 '17 09:05 kirrg001

Any updates on this?

wtubog avatar Jul 13 '17 05:07 wtubog

I would really like to see support for the

Luen avatar Apr 11 '20 08:04 Luen