Sunday, August 2, 2009

How do you put html text in a box without the html showing?

like... in myspace, im gonna give someone the html code of a picture... but i dont want the picture to show... just the html code... like there's a box or something... then the html code is inside... how do you do that?

How do you put html text in a box without the html showing?
Convert the %26lt; and %26gt; symbols to their HTML entities, which are %26amp; lt; and %26amp; gt; respectively.





Remove the spaces in %26amp; lt; and %26amp; gt; I had to use them so Answers would show them.
Reply:Well, you could set the value...or you could have fun with the DOM. Create a bookmarklet, as JavaScript has full access to the DOM, ID the box, and slip in the value. Of course, this requires the intelligence necessary not to post this in the Programming section, so you must be out of luck, sweetie!
Reply:There is the way which is what you mentioned, with text area!





For example:


%26lt;textarea%26gt;


%26lt;img src="http://URL.gif"%26gt;


%26lt;/textarea%26gt;





You can also format colors and fonts of your text area using CSS but that's another thing.

flowers for algernon

No comments:

Post a Comment