# Convert text to UpperCase outside html tags

**URL:** <https://forum.kirupa.com/t/convert-text-to-uppercase-outside-html-tags/325207>\
**Category:** Uncategorized\
**Created:** [October 1, 2011, 2:55pm UTC](https://forum.kirupa.com/t/convert-text-to-uppercase-outside-html-tags/325207 "2011-10-01T14:55:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedromau](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pedromau/32/2793_2.png) [@pedromau](https://forum.kirupa.com/u/pedromau)\
**Post date:** [October 1, 2011, 2:55pm UTC](https://forum.kirupa.com/t/convert-text-to-uppercase-outside-html-tags/325207/1 "2011-10-01T14:55:07Z")

</div>

Hey guys!  
I got this text that I want to convert to uppercase…  
Easy right?

the problem is that my server is linux, and files are case sensitive…  
So I need to convert the text to UpperCase, except what’s inside the html tags.

This prototype removes the HTML tags…  
can someone help me convert this to, instead removing the HTML, ingore the text to become upperCase?

```auto

String.prototype.removeHTML = function(){
	var temp, i;
	var xStr = this;
	var total = xStr.length;
		for(i=0;i<total; i++){
			if( xStr.charAt(i)!="<" ){
				temp += xStr.substr(i,1);
			} else {
				var x = xStr.substr(i).indexOf(">");
				i += x;
			}
		}
	return( temp );
}

```
