sviesc Posted February 24, 2004 Report Share Posted February 24, 2004 man i divas fu-cijas 1$text = str_replace( [kods], bla bla ,$text); $text = str_replace( [/kods], bla bla ,$text); 2 htmlspecialchars("$text", ENT_QUOTES); kā lai panāk ka htmlspecialchars() izpildās tikai no [kods] līdz [/kods] Link to comment Share on other sites More sharing options...
Venom Posted February 24, 2004 Report Share Posted February 24, 2004 mjā. preg_replace ar kaut ko līdzīgu '/[kods](.*)[/kods]/im' Link to comment Share on other sites More sharing options...
Recommended Posts