Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #5184, comment 10


Ignore:
Timestamp:
11/26/2013 09:00:57 AM (11 years ago)
Author:
DJPaul
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5184, comment 10

    v1 v2  
    22
    33@r-a-y: it's generally better to escape near output. e.g. We might want to use this `get` function's return value for an attribute in one place, or in a `<p>` tag, or inside a textarea, for example, and these require different output escaping functions.
     4
     5Although if this merits becoming a directly-usable-inside-templates function for a specific use case (instead of the more general use you seem to be hinting at), then it should be escaped in the function (like`the_title()`, `the_content()`, etc.