System update (text description)
This commit is contained in:
parent
d1c2c0a934
commit
db4346c627
1 changed files with 2 additions and 1 deletions
|
@ -3020,9 +3020,10 @@ class YellowToolbox
|
|||
}
|
||||
|
||||
// Create description from text string
|
||||
function createTextDescription($text, $lengthMax, $removeHtml = true, $endMarker = "", $endMarkerText = "")
|
||||
function createTextDescription($text, $lengthMax = 0, $removeHtml = true, $endMarker = "", $endMarkerText = "")
|
||||
{
|
||||
if(preg_match("/^<h1>.*?<\/h1>(.*)$/si", $text, $matches)) $text = $matches[1];
|
||||
if($lengthMax==0) $lengthMax = strlenu($text);
|
||||
if($removeHtml)
|
||||
{
|
||||
while(true)
|
||||
|
|
Loading…
Add table
Reference in a new issue