Javascript strip_tags();
-9
Strips all tags from any string.
<html>
<head>
<script type="text/javascript">
String.prototype.strip_tags = function(){
tags = this;
stripped = tags.replace(/[\<\>]/gi, "");
return stripped;
}
x = new String('<b>This is a test</b>');
document.write(x.strip_tags());
</script>
<style type="text/css">
</style>
</head>
<body>
<form>
<input type="text">
<input type="text">
<input type="button" onclick="this.form.elements[1].value = this.form.elements[0].value.strip_tags()" value="Strip 'em">
</form>
</body>
</html>






For example if my input was:
$5 < $6
The the function would return:
$5 $6