fix(editchangestate): Correct HTML title when transition contains apostrophes (closes #4775)