Zubrag.com
November 18, 2017, 02:27:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: strip html also stripping my text  (Read 4545 times)
getdim
Newbie
*
Posts: 3


« on: March 23, 2012, 11:29:50 AM »

I frequently use this script to strip html tags (alot of
Code:
<font> tags - <font color="#ff00">text here</font>
etc) from my previous craigslist ads before reposting them, but lately when i try to use the script its stripping most of or all of the text in between the opening and closing font tags as well as the tags themselves.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 785


WWW
« Reply #1 on: March 27, 2012, 02:16:16 AM »

Tried it, and here is result. What is wrong with it?

 tags - text here
Logged
getdim
Newbie
*
Posts: 3


« Reply #2 on: March 27, 2012, 08:07:41 AM »

its not working for me.
several days in a row i tried using it on something like this:
Code:
<font size="10" face="Bodoni MT="  # FF0000">  Exterior Home Lighting </font>

<font size="5" face=" Bodoni MT " color="#FF0000">
Lighting can turn your so so Landscape into a Beautiful Nighttime Masterpiece. </font>

<font size="5" face=" Bodoni MT " color="#FF0000">
At Total Home Solutions we work with landscape architects and individual homeowners to create the Ultimate Exterior Lighting Experience.

Whether you're looking to enhance your yard, walkways, garden, pool, and deck or accent a special landscape feature, you'll find it all in your budget. </font>
<font size="6" face=" Bodoni MT " color="  # C10606"> We stand by our word.  At THS we have a long history of being a reputable company.  Being a subsidiary that runs the recycling program for the City of Detroit.  At THS never will we change our price on the work that we quoted you.  All work done by THS is under full Warranty. Our Warranty is legally binding.  THS is both licensed and insured in the State of Michigan. </font>

<font size="5" face=" Bodoni MT " color="#FF0000">
The Right Outdoor Lighting Illuminates the Appeal of any Exterior Space. </font>

<font size="10" face=" Bodoni MT " color="  # C10606 "> Call us Today for a Quote
</font><font size="10" face=" Bodoni MT " color="#FF0000"> 800-520-1140</font>

<font size="6" face=" Bodoni MT " color="#FF0000">Or Visit our Website to Take Advantage of our other Services</font>
<font size="10" face=" Bodoni MT " color="  # C10606">
http://RebuildingMichigan.com</font>

i told it to allow <br> <br /> (some of the ads use improper line break tags like [icode]<br>[/icode] )
and when i click the button to strip the tags it strips everything. i get a completely blank box.

i took a vid of it. but the forum system wont let me post the link
Logged
getdim
Newbie
*
Posts: 3


« Reply #3 on: March 27, 2012, 08:09:29 AM »

heres the link:
ht tp: // youtu. be/N3Wo YbdyWLk
Logged
zubrag
Administrator
Hero Member
*****
Posts: 785


WWW
« Reply #4 on: March 27, 2012, 08:41:03 AM »

I see, thanks, that's because html is not valid, extra quotes

<font size="10" face="Bodoni MT="  # FF0000">  Exterior Home Lighting </font>

Will think how to workaround this
Logged
Breenda
Newbie
*
Posts: 3


« Reply #5 on: September 06, 2017, 02:30:14 AM »

thanks for your sharing, it helps me lot.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC