I am very sorry because the solution that solved my problem was late, but I saw that 4 people were interested in this issue, so I decided to publish it.
Even if at first I didn’t notice, later I found out that it is best to use the HTML cleaner for Laravel 5 in this situation (for an example of this) , because it clears all insecure html, so the result should be safe, even if the user can send messages with using html. This makes tipping pretty safe to use. I don't know if htmlpurifier still has security issues, but all my tests were filtered out as needed, so I think it should be safe enough.
Hope this helps someone. Sorry again, I forgot about this issue after I found a solution ...
source share