mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Restore Mastodon emoji span classes
- Fix typo in replacement of [class] tag
This commit is contained in:
parent
13c7224789
commit
95f099d26c
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ use Friendica\Util\XML;
|
|||
class BBCode
|
||||
{
|
||||
// Update this value to the current date whenever changes are made to BBCode::convert
|
||||
const VERSION = '2020-12-06';
|
||||
const VERSION = '2020-12-18-small-emojis';
|
||||
|
||||
const INTERNAL = 0;
|
||||
const API = 2;
|
||||
|
@ -1467,7 +1467,7 @@ class BBCode
|
|||
$text = preg_replace("(\[style=(.*?)\](.*?)\[\/style\])ism", '<span style="$1">$2</span>', $text);
|
||||
|
||||
// Check for CSS classes
|
||||
$text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '<span style="$1">$2</span>', $text);
|
||||
$text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '<span class="$1">$2</span>', $text);
|
||||
|
||||
// handle nested lists
|
||||
$endlessloop = 0;
|
||||
|
|
Loading…
Reference in a new issue