CFCLIENTSETTINGS produces an error in CF 2018 when HTML/CFML is added to the page.This error does not appear in CF2016.
"If you view the source of the page within your browser, you'll notice that the double quotations on line #17 are not properly escaped."
You are using " to delineate the string that contains " that are not escaped. Use "" within the string and it should be fine. Or change the internal " to '.
^ _ ^
UPDATE: Or, easiest part yet.. change the delineator from " to '. You replace two, done.