Lullabot / amp-library

Convert HTML to AMP HTML and report HTML compliance with the AMP HTML specification
Other
382 stars 181 forks source link

After converting to amp html, amp-script component is discarded from the template #301

Open AnnaMariaR opened 2 years ago

AnnaMariaR commented 2 years ago

After converting to amp html, amp-script components are discarded from the document. For example we have:

image After converting with convertToAmpHtml() method from the library, the amp-script and its script are being removed even if they are valid in amp. I guess PHP library lullabot is removing this as this might not be configured over there. Please help as this is an important component used in amp pages and should not be removed.