|
@@ -27,34 +27,11 @@ class Article
|
|
|
|
|
|
$data['content_array'] = array();
|
|
|
|
|
|
- if (strstr($data['content'], 'font-family:" hiragino="" sans="" gb","microsoft="" yahei","simsun";')) {
|
|
|
- $data['content'] = str_replace('font-family:" hiragino="" sans="" gb","microsoft="" yahei","simsun";', '', $data['content']);
|
|
|
- }
|
|
|
-
|
|
|
- if (strstr($data['content'], 'font-family:" gb","microsoft="" sans="" hiragino="" yahei","simsun";')) {
|
|
|
- $data['content'] = str_replace('font-family:" gb","microsoft="" sans="" hiragino="" yahei","simsun";', '', $data['content']);
|
|
|
- }
|
|
|
-
|
|
|
- if (strstr($data['content'], 'font-family:" yahei","simsun";')) {
|
|
|
- $data['content'] = str_replace('font-family:" yahei","simsun";', '', $data['content']);
|
|
|
- }
|
|
|
-
|
|
|
- if (strstr($data['content'], '"="" gb","microsoft="" sans="" hiragino="')) {
|
|
|
- $data['content'] = str_replace('"="" gb","microsoft="" sans="" hiragino="', '', $data['content']);
|
|
|
- }
|
|
|
-
|
|
|
- if (strstr($data['content'], 'font-family:" microsoft="" yahei","黑体",sans-serif')) {
|
|
|
- $data['content'] = str_replace('font-family:" microsoft="" yahei","黑体",sans-serif', '', $data['content']);
|
|
|
- }
|
|
|
-
|
|
|
- if (strstr($data['content'], '"="')) {
|
|
|
- $data['content'] = str_replace('"="', '', $data['content']);
|
|
|
- }
|
|
|
+ $data['content'] = Dever::filter($data['content']);
|
|
|
|
|
|
$content = $data['content'];
|
|
|
$replace = array();
|
|
|
if (strstr($data['content'], 'embed')) {
|
|
|
-
|
|
|
|
|
|
preg_match_all('/<p(.*?)>([\s]+)<embed src="(.*?)"(.*?)\/>([\s]+)<\/p>/i', $data['content'], $matches);
|
|
|
if (isset($matches[3])) {
|