Skip to content

Instantly share code, notes, and snippets.

@ryanwelcher
Last active March 21, 2018 15:31
Show Gist options
  • Save ryanwelcher/f95ebc5c008892280d88080e722cedc7 to your computer and use it in GitHub Desktop.
Save ryanwelcher/f95ebc5c008892280d88080e722cedc7 to your computer and use it in GitHub Desktop.
echo sprintf( esc_html__( '%s | %s', 'ms-research' ), '123434', '<script>alert(\'Sprintf\')</script>' );
echo esc_html__( sprintf( '%s | %s', '1234', '<script>alert(\'adsfasdfasdf\')</script>' ), 'ms-research' );
printf( esc_html__( 'Your city is %1$s, and your zip code is %2$s.', 'my-text-domain' ), 'Thing', '<script>alert(\'codex\')</script>' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment