Hallo,
Ik wil voor mijn website een [html] tag maken waarin html kan worden geplaats. Ik heb nu deze code van Rik:
Maar als ik dan bijv dit doe: [html]blaat[/html] krijg ik dit:
[html">Blaat[/html">
Wat is de fout?, alvast bedankt.
Ik wil voor mijn website een [html] tag maken waarin html kan worden geplaats. Ik heb nu deze code van Rik:
[COLOR= #0000BB]<?php
$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"#[html](.*?)[/html]#"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/html_entity_decode"]html_entity_decode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"\1"[/COLOR][COLOR= #007700]),[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
?> Maar als ik dan bijv dit doe: [html]blaat[/html] krijg ik dit:
[html">Blaat[/html">
Wat is de fout?, alvast bedankt.
