9 function smarty_modifier_preview($node_content)
12 if (!empty($_POST['no_html'])) {
13 $node_content=htmlspecialchars($node_content);
16 require(INCLUDE_DIR
.'htmlparse.inc');
18 htmlparser
::htmlparse($node_content);
20 if (!empty($htmlparse)) {
22 echo "<span class='most_important'> $error </span>";
26 $node_content = EregI_Replace("((( )|(\n)|(^))+)(http://|ftp://|https://)([[:alnum:]][^,[:space:]]*)","\\2<a target='_blank'href=\"\\6\\7\">\\6\\7</a>",$node_content);
27 $node_content=strip_tags($node_content,'<a><b><i><u><img><br><p><font>');
28 $node_content=str_replace("\n","<br>",$node_content);
33 /* vim: set expandtab: */
This page took 0.343484 seconds and 4 git commands to generate.