AMP_Base_Sanitizer::get_scripts

AMP_Base_Sanitizer::get_scripts()

Description #

Return array of values that would be valid as an HTML script element.

Array keys are AMP element names and array values are their respective Javascript URLs from https://cdn.ampproject.org


Return #

(string[]) Returns component name as array key and JavaScript URL as array value, respectively. Will return an empty array if sanitization has yet to be run or if it did not find any HTML elements to convert to AMP equivalents.


Changelog #

Changelog
Version Description
0.2 Introduced.