<?php $data = [ ['post_content' => '<div id="foo"></div>'], ['post_content' => '<div id="bar"></div>'], ]; array_walk($data, function(&$value, $key) { $value['post_content'] = htmlentities($value['post_content']); }); print_r($data);
You have javascript disabled. You will not be able to edit any code.