fix(html_format): add spacing below date if author is missing (#3425)

* small ui tweak

* remove unused <div>

* refactor: rename method

* refactor: inline const

* refactor
This commit is contained in:
Dag 2023-06-08 23:04:16 +02:00 committed by GitHub
parent 95071d0134
commit fbaf26e8bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 31 deletions

View file

@ -124,7 +124,7 @@ function sanitize(
return $htmlContent;
}
function sanitize_html(string $html): string
function break_annoying_html_tags(string $html): string
{
$html = str_replace('<script', '<&zwnj;script', $html); // Disable scripts, but leave them visible.
$html = str_replace('<iframe', '<&zwnj;iframe', $html);