mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
getContentText() 사용시 중복으로 escape 되는 문제 수정
이미 작성 과정에서 escape 하였으므로 중복 처리하면 특수문자 <,>가 깨짐
This commit is contained in:
parent
2b183435c8
commit
0848f2ad3c
2 changed files with 4 additions and 4 deletions
|
|
@ -363,7 +363,7 @@ class commentItem extends BaseObject
|
||||||
{
|
{
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
return escape($content);
|
return escape($content, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -394,7 +394,7 @@ class commentItem extends BaseObject
|
||||||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
return escape($content);
|
return escape($content, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -552,7 +552,7 @@ class documentItem extends BaseObject
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
|
|
||||||
return escape($content);
|
return escape($content, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getContentText($strlen = 0)
|
function getContentText($strlen = 0)
|
||||||
|
|
@ -577,7 +577,7 @@ class documentItem extends BaseObject
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
|
|
||||||
return escape($content);
|
return escape($content, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _addAllowScriptAccess($m)
|
function _addAllowScriptAccess($m)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue