H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Remove/Strip Html tags Java Script


About
This javascript function will help you to remove/strip HTML tags typed in text area or in text box.


Features
a)You can remove the html tags typed in a textarea/textbox.
b)This javascript displays strips any characted or tags given inside the tag.
c)Just copy the code in to your page and use it.
d)Simple and ease of use.


Preview for Strip HTML Tag

Type your data with HTML Tags in Textarea / Textbox:


Code
  Javascript Code
<!-- Script by hscripts.com -->
<script language=javascript>
function stripHTML(){
var re = /(<([^>]+)>)/gi;
for (i=0; i<arguments.length; i++)
arguments[i].value=arguments[i].value.replace(re, "")
}
</script>
<!-- Script by hscripts.com -->

  HTML Code
<!-- Script by hscripts.com -->
<form name="myform" METHOD=POST>
<textarea name="remove" rows=3 cols=40</textarea>
<input type="submit" value="Remove HTML tags" onSubmit="stripHTML(this.form.remove)">
</form>
<!-- Script by hscripts.com -->
Release Date - 23-12-2007

Get free version without ©copyright link for just 5



Usage
Here we have explained how to use the strip html tag javascript with the help of a form. When you click remove HTML tags button, it will remove the html tags entered into textbox.
  1. Copy the javascript code into the head part of your HTML page.
  2. Copy the HTML code, This will create a textarea.
    <form name="myform" METHOD=POST>
    <textarea name="remove" rows=3 cols=40</textarea>
    <input type="submit" value="Strip HTML tags" onSubmit="stripHTML(this.form.remove)">
    </form>
  3. In the preview of strip HTML tags we have use form field as button instead of submit to demonstrate its functionality
  4. The java script function "StripHTML()" will remove the HTML tags typed in textarea or text box.




License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others