Fixes errors caused by using quotation marks to specify the span class inside a string enclosed in quotations marks by replacing them with apostrophes.