JSFiddle - React, Tailwind, and code Playground

JavaScript

<html>
<head>
<script language=vbscript>
Function TextBox1_OnBlur()
document.all("TextBox1").value = Replace(document.all("TextBox1").value,"&","and")
End Function
</script>
</head>
<body>
<input type="Text" name="TextBox1">
</body>
</html>