add a sanitized style tag to bbcode

This commit is contained in:
marijus
2014-02-05 14:34:25 +01:00
parent 9e993bb4fd
commit a606fc0ba3
2 changed files with 59 additions and 0 deletions

View File

@@ -565,6 +565,10 @@ function get_tags($s) {
$s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s);
// ignore anything in [style= ]
$s = preg_replace('/\[style=(.*?)\]/sm','',$s);
// Match full names against @tags including the space between first and last
// We will look these up afterward to see if they are full names or not recognisable.