2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00

Escape HTML

This commit is contained in:
Adam Capriola 2018-08-16 15:12:47 -04:00 committed by GitHub
parent 83f3403bae
commit f5d2e2a32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ class HTMLTemplates {
<div class="respond comment-respond">
<h3 id="reply-title" class="comment-reply-title">
<?php echo esc_html( self::get_text_options( 'continue-discussion-text' ) . ' ' ); ?>
<a <?php echo self::target(); ?> href="{topic_url}">
<a <?php echo esc_html( self::target() ); ?> href="{topic_url}">
{discourse_url_name}
</a>
</h3>
@ -106,7 +106,7 @@ class HTMLTemplates {
$text = $discourse_comments_number > 0 ? self::get_text_options( 'join-discussion-text' ) : self::get_text_options( 'start-discussion-text' );
?>
<?php echo esc_html( $text ) . ' '; ?>
<a <?php echo self::target(); ?> href="{topic_url}">
<a <?php echo esc_html( self::target() ); ?> href="{topic_url}">
{discourse_url_name}
</a></h3>
</div>