mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix double escaping of title when cut_str() is used on it
This commit is contained in:
parent
a0b045b087
commit
36d7dcebcd
1 changed files with 1 additions and 1 deletions
|
|
@ -507,7 +507,7 @@ function cut_str($string, $cut_size = 0, $tail = '...'): string
|
||||||
{
|
{
|
||||||
$GLOBALS['use_mb_strimwidth'] = TRUE;
|
$GLOBALS['use_mb_strimwidth'] = TRUE;
|
||||||
$string = html_entity_decode($string);
|
$string = html_entity_decode($string);
|
||||||
return escape(mb_strimwidth($string, 0, $cut_size + 4, $tail, 'utf-8'));
|
return escape(mb_strimwidth($string, 0, $cut_size + 4, $tail, 'utf-8'), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$chars = array(12, 4, 3, 5, 7, 7, 11, 8, 4, 5, 5, 6, 6, 4, 6, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 8, 6, 8, 6, 10, 8, 8, 9, 8, 8, 7, 9, 8, 3, 6, 7, 7, 11, 8, 9, 8, 9, 8, 8, 7, 8, 8, 10, 8, 8, 8, 6, 11, 6, 6, 6, 4, 7, 7, 7, 7, 7, 3, 7, 7, 3, 3, 6, 3, 9, 7, 7, 7, 7, 4, 7, 3, 7, 6, 10, 6, 6, 7, 6, 6, 6, 9);
|
$chars = array(12, 4, 3, 5, 7, 7, 11, 8, 4, 5, 5, 6, 6, 4, 6, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 8, 6, 8, 6, 10, 8, 8, 9, 8, 8, 7, 9, 8, 3, 6, 7, 7, 11, 8, 9, 8, 9, 8, 8, 7, 8, 8, 10, 8, 8, 8, 6, 11, 6, 6, 6, 4, 7, 7, 7, 7, 7, 3, 7, 7, 3, 3, 6, 3, 9, 7, 7, 7, 7, 4, 7, 3, 7, 6, 10, 6, 6, 7, 6, 6, 6, 9);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue