HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Lines Breaks
Also add $this->Comment->Body = preg_replace('/<br\\s*?\/??>/i', '', $this->Comment->Body); on line 306 of the post.php controller in vanilla. So it is displayed normally in the edit box. Again both code samples just get the job done, there may be more cases that it is needed it. A nice function to do it, new location of… -
Re: Lines Breaks
Hey i have found a fix, all it requires is you add $FormPostValues['Body'] = nl2br($FormPostValues['Body']); on line 281 of the class.commentmodel.php in vanilla. As the function suggests it takes new lines and replaces them with break lines. There is probably other places where it needs to be added. Or done in a better…
2 results