01. april 2007 - 12:12Der er
5 kommentarer og 1 løsning
Fjerne Tags fra mysql udtræk.
Hej E.
har dette fra php.net
<?php // The \\2 is an example of backreferencing. This tells pcre that // it must match the second set of parentheses in the regular expression // itself, which would be the ([\w]+) in this case. The extra backslash is // required because the string is in double quotes. $html = "<b>bold text</b><a href=howdy.html>click me</a>"; $html2 = "bold text[a href=howdy.html]click me[/a]";
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.