Infame 0 Newbie Poster

Hi there! I recently attempted making a code that would strip certain characters:

function writeColum () {
	var x = document.getElementById("wc").value;
	document.getElementById("passValue").innerHTML=x.replace(/(\<.+>|<\/|<|>)/ig, "[censored]");
}

It works fine when showing it in 'live preview', but how can I make the clean value be used in a <form> be used instead of the 'raw' writing in the <textarea>?