Changeset 2593016
- Timestamp:
- 09/03/2021 02:37:28 AM (4 years ago)
- File:
-
- 1 edited
-
keydatas/trunk/keydatas.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
keydatas/trunk/keydatas.php
r2592506 r2593016 73 73 $title=htmlspecialchars_decode($title); 74 74 } 75 //which funtion to sanitize the html content?76 $content = keydatas_sanitize_html($_POST["post_content"]);75 76 $content =wp_kses_post($_POST["post_content"]); 77 77 if (empty($content)) { 78 78 $content=''; … … 400 400 } 401 401 402 function keydatas_sanitize_html($html) {403 //which funtion to sanitize the html content?404 //$html=sanitize_text_field($html);405 return $html;406 }407 402 408 403 ?>
Note: See TracChangeset
for help on using the changeset viewer.