فهرست منبع

Merge pull request #6174 from pixelfed/staging

Staging
dansup 1 هفته پیش
والد
کامیت
3d1ac05073
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Services/SanitizeService.php

+ 1 - 1
app/Services/SanitizeService.php

@@ -20,7 +20,7 @@ class SanitizeService
 
     public function cleanHtmlWithSpacing($html)
     {
-        $blockTags = ['p', 'img', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'blockquote', 'br'];
+        $blockTags = ['a', 'b', 'blockquote', 'br', 'code', 'del', 'div', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'i', 'img', 'li', 'ol', 'p', 'pre', 's', 'strike', 'strong', 'u', 'ul'];
 
         foreach ($blockTags as $tag) {
             $html = preg_replace("/<\/{$tag}>/i", "</{$tag}> ", $html);