<?php
// Source: http://us2.php.net/filters
// This code will only allow certain HTML tags --- <B>, <U>, and <I> in this example
$fp =
fopen('php://output',
'w');
fwrite($fp,
"<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
?>
<HR>
Another way to do this:
<HR>
<?php
$fp =
fopen('php://output',
'w');
fwrite($fp,
"<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
?>