Lustige Comments

Es ist schon recht interessant, was Programmierer so als Kommentartext in ihren Kode schreiben. So begegnete mir beim Durchstöbern des Kodes von WordPress 2.0.4 folgende Methode:


function wp_richedit_pre($text) {
// Filtering a blank results in an annoying 
\n if ( empty($text) ) return apply_filters('richedit_pre', ''); $output = $text; $output = convert_chars($output); $output = wpautop($output); // These must be double-escaped or planets will collide. $output = str_replace('<', '&lt;', $output); $output = str_replace('>', '&gt;', $output); return apply_filters('richedit_pre', $output); }

Leave a Reply »»

Note: All comments are manually approved to avoid spam. So if your comment doesn't appear immediately, that's ok. Have patience, it can take some days until I have the time to approve my comments.