[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 09:13:18 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 | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by wildworks:
Old description:
> 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.
New description:
Post titles can contain HTML elements. On the other hand, the
`get_the_privacy_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#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list