Category: PHP

Please consider supporting us by just disabling your AD BLOCKER and reloading this page again. Sometimes there might arise a situation to alter the stored HTML of the database to display on the fly to the user or you might want to play around with XML from PHP.

These HTML elements are not directly compatible with AMP HTML and have to be replaced, common tags that I had to replace are as follows img -> amp-imgiframe -> amp-iframe

Since HTML spellcheck attribute is not supported by AMP HTML we need to remove it while displaying it in the AMP view page.

If we need any values of the element we can use getAttribute to get the value of the attribute and then we can play around as follows
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners