Javascript Jquery Replacewith Function Only Provides Raw Html

Javascript Jquery Replacewith Function Only Provides Raw Html