JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="attribute:name" ID="attribute:index" value="attribute:value" onKeyUp="myfunction('attribute:index')" />
JavaScript
function myfunction(sourceObject) {
el = document.getElementById(sourceObject)
el.value = el.value.replace(/</g, '')
el.value = el.value.replace(/>/g, '')
var inputTextString = ""
var inputTextString = el.value.toUpperCase();
}