mirror of
https://github.com/hongweipeng/MenuTree.git
synced 2026-08-13 22:43:27 +08:00
修复标题包含单引号时不可用的问题
This commit is contained in:
@@ -10,7 +10,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit(0);
|
||||
*/
|
||||
class MenuTree_Plugin implements Typecho_Plugin_Interface {
|
||||
|
||||
public static $v = '0.8.0';
|
||||
public static $v = '0.8.1';
|
||||
|
||||
/**
|
||||
* 索引ID
|
||||
@@ -161,6 +161,7 @@ class MenuTree_Plugin implements Typecho_Plugin_Interface {
|
||||
if( $include ) {
|
||||
$menuHtml = '<ul>' . $menuHtml . '</ul>';
|
||||
}
|
||||
$menuHtml = str_replace("'", ''', $menuHtml);
|
||||
return $menuHtml;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user