[wp-trac] [WordPress Trac] #64748: Privacy: get_the_privacy_policy_link() should strip HTML tags and return plain text

WordPress Trac noreply at wordpress.org
Fri Feb 27 08:19:30 UTC 2026


#64748: Privacy: get_the_privacy_policy_link() should strip HTML tags and return
plain text
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Post titles can contain HTML elements. On the other hand, the
 `get_the_policy_policy_link()` function escapes HTML. As a result,
 unnatural links may be generated. We should probably remove the HTML
 instead of escaping it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64748>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list