1
0
mirror of https://github.com/hongweipeng/MenuTree.git synced 2025-03-21 21:00:24 +08:00

修复标题包含单引号时不可用的问题

This commit is contained in:
hongweipeng 2020-04-09 13:40:52 +08:00
parent cd6b042c1d
commit 9ad2d1ce10

View File

@ -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("'", '&apos;', $menuHtml);
return $menuHtml;
}