sanitize_post_field() not accepting by PHPCS why?

51 Views Asked by At
$template_html = sanitize_post_field('template_content_html',$_POST['template_content_html'], $post_id, 'db' );

I'm saving some HTML in post meta but i don't want lose any html while sanitizing but this sanitize_post_field() actually not accepting by phpcs why is there missing something?

I was looking for saving html in post meta

0

There are 0 best solutions below