mirror of
https://github.com/friendica/friendica
synced 2025-04-22 13:50:12 +00:00
Prevent hashtag parsing and replacement in image alternative text
This commit is contained in:
parent
615e6f20f0
commit
e2c38f1347
2 changed files with 2 additions and 2 deletions
|
@ -2066,7 +2066,7 @@ class BBCode
|
|||
{
|
||||
$ret = [];
|
||||
|
||||
BBCode::performWithEscapedTags($string, ['noparse', 'pre', 'code'], function ($string) use (&$ret) {
|
||||
BBCode::performWithEscapedTags($string, ['noparse', 'pre', 'code', 'img'], function ($string) use (&$ret) {
|
||||
// Convert hashtag links to hashtags
|
||||
$string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue