|
@@ 279-279 (lines=1) @@
|
| 276 |
|
// If the tile is empty, extract string from the contents. |
| 277 |
|
$obj->title = htmlspecialchars($obj->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 278 |
|
settype($obj->title, "string"); |
| 279 |
|
if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...'); |
| 280 |
|
// If no tile extracted from the contents, leave it untitled. |
| 281 |
|
if($obj->title == '') $obj->title = 'Untitled'; |
| 282 |
|
// Remove XE's own tags from the contents. |
|
@@ 481-481 (lines=1) @@
|
| 478 |
|
// If the tile is empty, extract string from the contents. |
| 479 |
|
$obj->title = htmlspecialchars($obj->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 480 |
|
settype($obj->title, "string"); |
| 481 |
|
if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...'); |
| 482 |
|
// If no tile extracted from the contents, leave it untitled. |
| 483 |
|
if($obj->title == '') $obj->title = 'Untitled'; |
| 484 |
|
// Remove XE's own tags from the contents. |