/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//PHP-Code for functions.php function pre_esc_html($content) { '#(<pre.*?>)(.*?)(< /pre>)#imsu', '$i', 'return $i[1].esc_html($i[2]).$i[3];' ), $content ); } add_filter( 'the_content', 'pre_esc_html' );
Comments
