wp_sanitize_script_attributes


wp_sanitize_script_attributes ( $attributes )

Parameters:
  • (array) attributes Key-value pairs representing `<script>` tag attributes.
Returns:
  • (string) String made of sanitized `<script>` tag attributes.
Defined at:

Description

Sanitizes an attributes array into an attributes string to be placed inside a `