]> git.mxchange.org Git - friendica.git/commitdiff
API: Just some more elements where Twidere has problems ...
authorMichael Vogel <icarus@dabo.de>
Tue, 12 Apr 2016 20:53:54 +0000 (22:53 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:47:24 +0000 (13:47 +0200)
include/api.php

index 8d74a4612df70bf6ae7120bcc8f6ff5a4f2184b0..305a86ca13e7148de24210c2515ea675a1ffd9f0 100644 (file)
 
                $statushtml = trim(bbcode($body, false, false));
 
-               $search = array("<br>", "<blockquote>", "</blockquote>");
-               $replace = array("<br>\n", "\n<blockquote>", "</blockquote>\n");
+               $search = array("<br>", "<blockquote>", "</blockquote>",
+                               "<h1>", "</h1>", "<h2>", "</h2>",
+                               "<h3>", "</h3>", "<h4>", "</h4>",
+                               "<h5>", "</h5>", "<h6>", "</h6>");
+               $replace = array("<br>\n", "\n<blockquote>", "</blockquote>\n",
+                               "\n<h1>", "</h1>\n", "\n<h2>", "</h2>\n",
+                               "\n<h3>", "</h3>\n", "\n<h4>", "</h4>\n",
+                               "\n<h5>", "</h5>\n", "\n<h6>", "</h6>\n");
                $statushtml = str_replace($search, $replace, $statushtml);
 
                if ($item['title'] != "")