mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
bbcode: Function for cleaning CSS commands (not yet in function)
items.php: The detection if a rss/atom-title is identically to the body is improved.
This commit is contained in:
parent
b904a21134
commit
d40f25ae08
2 changed files with 19 additions and 0 deletions
|
@ -378,10 +378,12 @@ function title_is_body($title, $body) {
|
|||
|
||||
$title = strip_tags($title);
|
||||
$title = trim($title);
|
||||
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
||||
$title = str_replace(array("\n", "\r", "\t", " "), array("","","",""), $title);
|
||||
|
||||
$body = strip_tags($body);
|
||||
$body = trim($body);
|
||||
$body = html_entity_decode($body, ENT_QUOTES, 'UTF-8');
|
||||
$body = str_replace(array("\n", "\r", "\t", " "), array("","","",""), $body);
|
||||
|
||||
if (strlen($title) < strlen($body))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue