AMP_DOM_Utils::get_amp_bind_placeholder_prefix

This method has been deprecated. Use AMP_DOM_Utils::convert_amp_bind_attributes() instead.

AMP_DOM_Utils::get_amp_bind_placeholder_prefix()

Description #

Get attribute prefix for converted amp-bind attributes.

This contains a random string to prevent HTML content containing this data- attribute originally from being mutated to contain an amp-bind attribute when attributes are restored.

See also

  • {@see AMP_DOM_Utils::convert_amp_bind_attributes()}
  • {@see AMP_DOM_Utils::restore_amp_bind_attributes()}

Return #

(string) HTML5 data-* attribute name prefix for AMP binding attributes.


Changelog #

Changelog
Version Description
0.7 Introduced.