Skip to content

Commit

Permalink
escape attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcaruso committed May 2, 2024
1 parent 96191d2 commit c154830
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private function html5_static() {
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) {
$html .= ' autoplay="true"';
} else {
$html .= ' preload="' . $preload . '"';
$html .= ' preload="' . esc_attr( $preload ) . '"';
}
if ( isset( $this->video->text_direction ) ) {
$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"';
Expand Down

0 comments on commit c154830

Please sign in to comment.