HTML Tags Stripper is designed to strip HTML tags from the text. It will also strip embedded JavaScript code, style information (style sheets), as well as code inside php/asp tags (<?php ?> <%php ?> <% %>). It will also replace sequence of new line characters (multiple) with only one.
Allow tags feature is session sticky, i.e. it will remember allowed tags list, so you will have to type them only once.
You can either provide text in text area below, or enter URL of the web page. If URL provided then HTML Tags Stripper will visit web-page for its contents.
Known issues:
Tool is not yet working correctly with non-latin characters (cyrillic, etc.). Will be fixed soon.
You might be interested in other
online tools.
Snake
October 10, 2006
waw it's creat , how can I am download ?
Alex
January 17, 2007
Why don't you build one yourself snake. Just use PHP and use find / replace code.
Pat
January 20, 2007
no alex find replace will not work... we have to use strip_tag fucntion to remove all the html tag... the same is done in this tool... zubrag.com is doing a great work.
Alex
January 26, 2007
Of course you can do find / replace! There is no php function called strip_tag. The code probably loads the HTML formatted text and searches for <p> </p> and strips them, leaving the text between them. It would remove <img ...> tags including all the height & width which you would do with a search function: find instances of <img and remove this as far as the next instance of >.
Gaz
February 5, 2007
Alex, there is a php function caled strip_tags loot @ the manual!!
http://uk2.php.net/manual/en/function.strip-tags.php
Alex
February 12, 2007
Pat said - strip_atg - not strip_tags. Anyway - I shall do it my way, in my typical minimalist style of 3 lines of code
rollo
March 27, 2007
Good stuff. Any chance of modifying it to allow retention of "core" tags (eg <p>)?
Yes, we'll add unremovable tags feature this weekend
March 30, 2007
I'm working on a site and i want to print the current page title on the page not just in the title position how can i do that?
kl365
August 20, 2007
nice script but removes crlf from text files as well, not sure if its a bug or feature.
August 21, 2007
fantastic script.
August 28, 2007
is it available for download?
September 16, 2007
Very cool.
Works even on html+javascript+php. Love it :D:D:D:D
January 29, 2008
Very nice - it beats doing a ton of regex in Dreamweaver :-)
1 feature request: Can you have a check box that removes anything inside a p or br tag but leaves the tag it's self?
For example I want this:
<p class="a" style="padding:5px;">
Changed to this:
<p>
When I have selected that I want to retain the <p> tag and also checked this box.
Possible?
Thanks!
Matt M.
March 20, 2008
I have an excel document with 7000 fields that need to be stripped on html tags, any suggestions on how I can do this (find/replace is not an option-formulas to long) I can go field by field with this editor, but was hoping for something to knock it all out in one shot?
monzur0010 [anti-spam] yahoo.com
April 2, 2008
How can i get the Script??
briantw [anti-spam] briantw.com
April 4, 2008
Alex, you were proved wrong and you say, "anyway, I'll do it my way." Learn some humility and admit when you're wrong.
Pat
April 5, 2008
Thank you very much!
April 24, 2008
Double byte characters are corrupted.
Please try this.
http://honyaku.yahoofs.jp/url_result?ctw_=sT,eCR-JE,bF,hT,uaHR0cDovL3d3dzE1LmJpZy5vci5qcC9+dDk4OTA3L3N0cmlwdGFncy8=,qlang=ja|for=0|sp=-5|fs=100%|fb=0|fi=0|fc=FF0000|db=T|eid=CR-EJ,k5d1b27197cfee5060a070c53319d72d1,t20080425080604,
Paul
April 26, 2008
How can you get it to keep script tags?
Here is what I tried:
In the Allow Tags field, I typed the following:
<script><p><br><table><head><body><html>
<title><meta><br><link><tr><td><div>
<form><img><!DOCTYPE>
It removed the word !DOCTYPE and it removed all php and javascript code. Am I doing something wrong?
Paul
April 26, 2008
I want to remove all font tags. Unfortunately, this tool deletes script and comment tags. So first convert the script tags to an unusual string like <SSSS or SSSS>, and convert the comment tags to <HHHH and HHHH>. Then paste the text into the tool, and strip the unwanted (font) tags. Use the following keep tags string:
<SSSS><HHHH><a><input><p><br><table><head><body><html><title><meta><br><link><tr><td><div><form><img><!DOCTYPE>
After the font tags are stripped, re-convert the substituted strings back to their original state. The word !DOCTYPE will need to be re-typed.
Paul
April 26, 2008
The above post is what I came up with to answer my own question. Does anyone know a better way?
I want to remove only the font tags. Unfortunately, the tool removes script tags too - even if <script> is typed into the Allow Tags field.
April 30, 2008
It also removes carriage returns, making it not so useful for cleaning HTML tags from emails.
Ven
July 14, 2008
Alex can please post your minimalist code that does this? I'm always willing to try things more than one way and then choose the one that works best for the task at hand. Thanks!
visigraphic.com
August 3, 2008
can I download this script?
thanks
www.visigraphic.com
kill1 [anti-spam] killer.com
August 14, 2008
not a big deal
try this
http://in.php.net/strip_tags
smith
October 8, 2008
What program can I use to return the code to original file type after stripping and translation.....
protestant [anti-spam] programmer.net
November 20, 2008
I added the following text:
<strong><span style="font-size: 12px"><span style="text-decoration: underline"><span style="color: #cc0000"><span><span style="font-size: 12px">testing</span> </span></span></span></span></strong>
<1>Point no. 1
<2>Point no. 2
..
..
From the above text <1> and <2> should not have been removed, or should it. At least, I didn't want it. Those are only some points mentioned in the text.
PETRIX_23 [anti-spam] YAHOO.COM
January 14, 2009
I Want to learn more about vulnerable injection trick & tips for the beginner. thanks a lot.
Curda
January 30, 2009
Only use the function of php strip_tags();
print strip_tags($string,$tagsallowed);
fasfasdfasdf [anti-spam] dasdfasd.com
February 11, 2009
protestant programmer:
the way it works is by removing html style tags I assume. So html is anything inside <> and the <> even if it's not valid html if it's entered here inside <> it will be removed.
mohit
April 10, 2009
wow..its really cool..
how can i download this script?
i really need it...
April 30, 2009
Love the tag stripper! Would love to see one that retained the paragraph format of whatever gets pasted in... I'd pay a reasonable monthly fee to have access to that sucker!!!
ezcorp [anti-spam] codetel.net.do
May 16, 2009
Did not work for me!
My document still not accepted on the web application I am pasting the document because it still has HTML & Scripting tags after I pass it thru your stripper system.
beausaber23798 [anti-spam] yahoo.com
May 16, 2009
I agree the comments of April 30, although I would pefer to pay for a standalone version I could download. Thank you for spending the time & effort on this.
May 19, 2009
Thanks!!!!!!
May 20, 2009
Thanks a lot... Really useful for restoring pages made with FrontPage. There's like 500 <span> tags >_<
joshua.davies [anti-spam] live.com
August 10, 2009
DONT WORK HOW DDO ????????????????????
glennewing [anti-spam] hotmail.com
August 24, 2009
Hi.
This is exactly what I needed.
I have several large documents that need to be stripped. Any chance I can get the program, or send you the docs for stripping?
September 3, 2009
Thanks!!!
courcyceline [anti-spam] gmail.com
November 4, 2009
Hi,is there any way I could download the program, I have 2 huge files to process and the on-line tool does not allow this kind of volume. Happy to pay a reasonable fee! URGENT.
capsen
November 10, 2009
what if we allow some tag but we also want disallow javascript?
<p onclick="alert('hello')" > dfd</p>
Big Dave
November 13, 2009
Thanks for this - use it all the time.