Skip to content

Commit

Permalink
navigation: use esc_html() for html code
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Nov 20, 2019
1 parent 739d3bd commit 760f0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function build_navigation_html( $block, $colors ) {
// Start anchor tag content.
$html .= '>';
if ( isset( $block['attrs']['label'] ) ) {
$html .= esc_attr( $block['attrs']['label'] );
$html .= esc_html( $block['attrs']['label'] );
}
$html .= '</a>';
// End anchor tag content.
Expand Down

0 comments on commit 760f0a5

Please sign in to comment.