Saltar al cotenido Saltar a la navegación Información de contacto

<?php
function TextoHTML($StrTexto)
{

$html="";
$strTextoAux = $StrTexto;
while ($strTextoAux != "")
{
$caracter=substr($strTextoAux,0,1);
switch($caracter)
{
case chr(13):
$html=$html . "<br>";
break;
case chr(9):
$html=$html . "<blockquote>";
break;
case chr(32);
$html=$html . " ";
break;
default:
$html=$html . $caracter;
}
$strTextoAux=substr($strTextoAux,1,strlen($strTextoAux)-1);
}


$html = str_replace("</script>","</script-->",str_replace("<script","<!--script",trim($html)));
return $html;
}
?>