Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML in JQuery 1

Status
Not open for further replies.

zura

Technical User
Sep 20, 2011
23
GE
HI...
How escape in this script HTML

Code:
<html>
<head>
<script type="text/javascript" src="dialog_box.js"></script>
</head>
<body>
<a href="javascript:showDialog('some text',
'<p><font color="red">some text. "/\''&</td></tr>some text"</font></p>',
'some text');">link!</a>
</body>
</html>
 
Hi

Use HTML character entity :
Code:
[b]<a[/b] [maroon]href[/maroon][teal]=[/teal][green][i]"javascript:showDialog('some text','<p><font color=[highlight]&quot;[/highlight]red[highlight]&quot;[/highlight]>some text</font></p>','some text');"[/i][/green][b]>[/b]link![b]</a>[/b]
Or use single quotes ( ' ) and escape them with backslash ( \ ) :
Code:
[b]<a[/b] [maroon]href[/maroon][teal]=[/teal][green][i]"javascript:showDialog('some text','<p><font color=[highlight]\'[/highlight]red[highlight]\'[/highlight]>some text</font></p>','some text');"[/i][/green][b]>[/b]link![b]</a>[/b]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top