Reply to thread

Better workaround:


[CODE="diff"]--- a/src/XF/Html/Renderer/BbCode.php

+++ b/src/XF/Html/Renderer/BbCode.php

@@ -491,6 +491,12 @@ class BbCode

      */

     public function renderCss(Tag $tag, $stringOutput)

     {

+        // Workaround: https://xenforo.com/community/threads/unable-to-paste-from-spreadsheet.223298/

+        if (preg_match('/^\[(th|td)/i', $stringOutput))

+        {

+            return $stringOutput;

+        }

+

         $css = $tag->attribute('style');

         if ($css)

         {[/CODE]


Back
Top Bottom