Skip to content

Commit

Permalink
Strip HTML tags of post title on example tab in vb-crossref-doi and v…
Browse files Browse the repository at this point in the history
…b-doaj-submit.
  • Loading branch information
thomaslow committed May 27, 2024
1 parent 5dfe158 commit aca21aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function render_example_tab() {
<h2>
Example:
<a href="<?php echo esc_attr( get_edit_post_link( $post ) ); ?>">
<?php echo esc_html( get_the_title( $post ) ); ?>
<?php echo esc_html( wp_strip_all_tags( get_the_title( $post ) ) ); ?>
</a>
</h2>
<form method="post" onsubmit="return;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ public function render_example_tab() {
?>
<h2>
Example: <a href="<?php echo esc_attr( get_edit_post_link( $post ) ); ?>">
<?php echo esc_html( get_the_title( $post ) ); ?>
<?php echo esc_html( wp_strip_all_tags( get_the_title( $post ) ) ); ?>
</a>
<?php
if ( ! empty( $doaj_article_id ) ) {
Expand Down

0 comments on commit aca21aa

Please sign in to comment.