[wp-trac] [WordPress Trac] #62952: Wrong Escaping functionality in ajax

WordPress Trac noreply at wordpress.org
Wed Feb 12 16:39:34 UTC 2025


#62952: Wrong Escaping functionality in ajax
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  (none)
  rajdiptank111          |
     Type:  defect       |      Status:  closed
  (bug)                  |
 Priority:  normal       |   Milestone:
Component:  General      |     Version:  6.7.2
 Severity:  normal       |  Resolution:  invalid
 Keywords:  has-         |     Focuses:  javascript, administration,
  screenshots            |  coding-standards, php-compatibility
-------------------------+-------------------------------------------------

Comment (by sabernhardt):

 [43290] has a good example of when to use each function:
 {{{
 <a href="<?php echo esc_url( $comment_link ); ?>">
         <?php echo esc_html( $comment_link ); ?>
 </a>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62952#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list