Jump to content

[SOLVED] Displaying HTML within text input


Fog Juice

Recommended Posts

Hey everyone,

 

How can I display HTML within a text input when the HTML contains quotes?

 

For example:

<input type="text" value="<a href="website.com"><img src="pic.jpg" /></a>" />

 

See the code above but the quotes screw it up so the first quote beside website.com is interpreted as the escape quote from the value=. I want to display that entire chunk of html within the value so that people can highlight it and copy it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.