I did not find anything to do that so I wrote my own. Here's a slightly modified copy. The last function is the one to use: pel-syntax-fix-block-content:
(defun pel-inside-string-p (&optional pos)
"Return non-nil if POS, or point, is inside a string, nil otherwise."
(nth 3 (syntax-ppss pos)))