rendered paste body<?php function parsetext($str) { $str = wordwrap($str,90,"\n ",1); $str = htmlentities($str); $str = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<ahref="\\1" target="_blank">\\1</a>', $str); $str = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '\\1<a href="<ahref=\"http://\\2"\" target=\"_blank\">http://\\2"</a>; target="_blank">\\2</a>', $str); $str = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})','<ahref=\"mailto:\\1\">\\1</a>', $str); $str = preg_replace("/\[code\](.*?)\[\/code\]/ise",'str_replace("\n","",highlight_string(wordwrap(html_entity_decode(\'\1\'),105,"\n ",1), true))',"$str"); $str = preg_replace("/\[citat\](.*?)\[\/citat\]/is",'<div class=citat> \\1 </div>',"$str"); $str = nl2br($str); return $str;} ?>