Wp_Kses strips anchor attributes
-
Im using wp_kses on a custom content to save it in post meta .
$allowed_html = wp_kses_allowed_html( 'data' );
$complete_layout_data = wp_kses($_POST["complete_layout_data"],$allowed_html );
The dump result of the above code
<a>Click Here</a>
Have no clue what went wrong tried wp_kses_post as well but no success.
Note: Im using a the filter on the second editor .
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Wp_Kses strips anchor attributes’ is closed to new replies.