WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #37085, comment 2


Ignore:
Timestamp:
02/21/2017 03:27:01 PM (3 years ago)
Author:
wido
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37085, comment 2

    v1 v2  
    11I made this little function but need more re-search about all of the allowed attributes.
    22Also, seems the '''form''' tag have missed the 'novalidate' attribute, but I want to read the specs about it.
     3
     4Update:
     5Fieldset in $allowedposttags have no attributes allowed like id, class, form and name. I don't know right now for other attributes.
    36
    47{{{
    58/**
    69 * Sanitize content for allowed HTML tags for post content.
    7  *
    8  * Post content refers to the page contents of the 'post' type and not $_POST
    9  * data from forms.
    1010 *
    1111 * @param string $data Post content to filter