mirror of
https://github.com/friendica/friendica
synced 2025-05-10 17:44:09 +02:00
Fix removing falsy text nodes in HTML::tagToBBCodeSub
- This wrongly removed text nodes containing just '0'
This commit is contained in:
parent
df559a24c0
commit
3e1b6890b7
2 changed files with 7 additions and 3 deletions
|
@ -82,6 +82,10 @@ its surprisingly good",
|
|||
'html' => "<p>Now playing</p><pre><code>echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -o a.out -x c - 2> /dev/null
|
||||
./a.out | aplay -q 2> /dev/null</code></pre><p>its surprisingly good</p>",
|
||||
],
|
||||
'bug-11851-content-0' => [
|
||||
'expectedBBCode' => '[url=https://dev-friendica.mrpetovan.com/profile/hypolite]@hypolite[/url] 0',
|
||||
'html' => '<p><span class="h-card"><a href="https://dev-friendica.mrpetovan.com/profile/hypolite" class="u-url mention">@<span>hypolite</span></a></span> 0</p>',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue