Improvements for the latex_escape filter