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: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Sanitizes an attributes array into an attributes string to be placed inside a `