ampproject / amp-toolbox-php

AMP Optimizer PHP library
Apache License 2.0
73 stars 25 forks source link

Sanitizer: Initial implementation #195

Open schlessera opened 3 years ago

schlessera commented 3 years ago

The AMP Toolbox should include a sanitizer that is a pure PHP variant of the collection of sanitizers currently found in the AMP for WordPress plugin.

The general idea is that the Sanitizer should take regular HTML5 markup and make smart transformations to turn it into AMPHTML markup.

westonruter commented 1 year ago

As a concrete outcome for this effort we should consider at least the code from the AMP plugin which is copied into the Web Stories plugin, so the Web Stories dependency on the AMP plugin can be eliminated.