Re: Make HTML code show up on the web
Bob <lindsay.robert@gmail.com> writes:
> On Apr 15, 4:32 am, Harlan Messinger
> <hmessinger.removet...@comcast.net> wrote:
> > [escape the HTML]
>
> I know, but I hate that. I wanted to try something different.
How do you deal with displaying </textarea> in HTML code with this
method?
Why do you hate escaping < as < - if it's because it's a pain to
write every time, then use a method for generating the HTML code that
does it automatically.
Escaping also has the advantage that you can do more with the
displayed code. Example:
<p>An image is displayed with <img src="<var>url</var>"
alt="<var>alternative text</var>" <span class="optional">width="<var>w</var>"
height="<var>h</var>"</span>>.</p>
(While not at all necessary, I've also escaped > to > in the
displayed code to make it slightly clearer)
--
Chris
|