JSFiddle - React, Tailwind, and code Playground

JavaScript

var html = "<xsd\:element>";
alert($(html).is("xsd\\:element"));