@@ -33,14 +33,14 @@ |
||
33 | 33 | { |
34 | 34 | preg_match_all('%<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>%si', $html, $result, PREG_PATTERN_ORDER); |
35 | 35 | |
36 | - if(empty($result[1])) { |
|
36 | + if (empty($result[1])) { |
|
37 | 37 | return '<p>'.$text.'</p>'; |
38 | 38 | } |
39 | 39 | |
40 | 40 | $tagName = array_pop($result[1]); |
41 | 41 | $pos = strrpos($html, '</'.$tagName.'>'); |
42 | 42 | |
43 | - if(in_array(strtolower($tagName), self::$newParaTags)) { |
|
43 | + if (in_array(strtolower($tagName), self::$newParaTags)) { |
|
44 | 44 | $replace = '</'.$tagName.'><p>'.$text.'</p>'; |
45 | 45 | } else { |
46 | 46 | $replace = $text.'</'.$tagName.'>'; |