Hallo Forumer,
das strip_tag erlaubt einen zusatzparameter allowable_tags um htmlcode teilweise ( z. b.links bzw.: a href /a)zu erhalten.
mir (zugegeben anfänger) gelingt die syntax dieser option irgendwie nicht und beispiele finde ich auch nirgends.
so siehts jetzt aus:
echo fopen ("xxx.html", "r");
$file_text = join('',file("xxx.html"));
$file_text = strip_tags( $file_text , file("agb.html") , $file_text , allowable_tags("<a href>" );// hier ist der wurm drin
$filename="xxx.txt" ;
$handle = fopen($filename, 'a');
fwrite($handle, $file_text);
fclose($handle);
Bekomme immer die fehlermeldung:
Fatal error: Call to undefined function: allowable_tags()
bedanke mich für jede Hilfe,
hans