AMP_Base_Sanitizer::maybe_enforce_https_src( string $src, boolean $force_https = false )
Description #
Decide if we should remove a src attribute if https is required.
If not required, the implementing class may want to try and force https instead.
Parameters #
- $src
-
(Required) URL to convert to HTTPS if forced, or made empty if $args['require_https_src'].
- $force_https
-
(Optional) Force setting of HTTPS if true.
Default value:false