function formatAttr(value){ var v = value.replace(/('#input').val()/g,'<span style="background-color: #FFFF00">('#input').val()</span>'); return v;}