Flitig postare
|
|
Reg.datum: Apr 2011
Inlägg: 410
|
|
Flitig postare
Reg.datum: Apr 2011
Inlägg: 410
|
PHP preg_replace
Tjenna. Denna kod funkar:
echo preg_replace ('/\<code\>(.*?)\<\/code\>/isx', '<pre class="code">$1</pre>', $content);
Men jag vill kunna sätta htmlentities($1) på koden som är inuti <code>.
preg_replace funkar men hur sätter jag funktionen på den?
|