function gen()
{
var v=document.getElementById('title').value;
var s=v.toLowerCase();
s=s.replace(/[^a-zA-Z ]/g,'');
s=s.replace(/ /g,'-');
document.getElementById('identifier').value=s;
}
var obj = document.getElementById('title');
obj.onblur = gen;

 

/app/code/community/AW/Blog/Block/Manage/Blog/Edit/Tab/Form.php

find <script> insert it.

 

/app/code/community/AW/Blog/controllers/Manage/BlogController.php

replace 

 

$tags = preg_split("/[, ]+\s*/i", $data['tags'], -1, PREG_SPLIT_NO_EMPTY);

with

 

$tags = preg_split("/[,]+\s*/i", $data['tags'], -1, PREG_SPLIT_NO_EMPTY);
 

 


 

 

/app/code/community/AW/Blog/Model/post.php

保存文章前替换文章内容

$content=str_replace("源","目标",$content);
 

 

 

 

 

c#替换空格 tab字符 换行符 新行

string trim Regex.Replace( text, @"\s", "" );