Unstoppable Domains โ€” Expired Auctions

Removing Quotation from Javascript forum

SpaceshipSpaceship
Watch

brianwiz

Established Member
Impact
1
Heres the code for the particular part

if (form.description.value != "") {
form.Meta.value += "\""+
form.description.value + "\</a>\n";
}

<td> <input type="text" name="description" size="25"></td>

And i get this

"brian</a>

I try to remove the quotation and i get error messages all the time.

Any ideas?

The problem seems to be

form.description.value + "\</a>\n"; <--- the quotation after the plus. IF i remove it dosent work.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
The "brian is caused by the "\"". Removing the quotation mark from "\</a>\n" would cause JavaScript to attempt to parse \</a>\n" as a pirce of code, which it is not.

Replace:
Code:
if (form.description.value != "") {
form.Meta.value += "\""+ 
form.description.value + "\</a>\n";
}
With:
Code:
if (form.description.value != "") {
form.Meta.value += form.description.value + "\</a>\n";
}

And it should work.
 
0
•••
I still get the qoutes. The outcome was

"brian" </a>

I just need the quotes to disappear and the word to appear.

THANK YOU..

With the code you gave me I found a way around it by adding some tags to the situation like<b><h4>

Thanks :)
 
Last edited:
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back