View Single Post
Old 07-21-2005, 16:00   #3 (permalink)
Francesky
Civilians

 
Default Re: Inserting HTML code in an HTML page

> Before you display the HTML code in the field, just replace all < and >
> with their respective HTML entities. Your sig says you know PHP so here's
> a quick example:
>
> $htmlString = str_replace(array("<", ">"), array("&lt;", "&gt;"),
> $htmlString);
>


Well, it works, but I wanted something that in some part of the article
could have been disabled html interpretation, whele in other parts not.

For example, in the same article I put an img tag like this

<img src="/articles/art4/image_name1.png">

to diplay an image in the article.


Francesco



--
Teaching OnLine
Corsi online di programmazione
Php, Asp, C, C++, Visual Basic, Delphi
VBA per Access, Excel
Linux Shell Programming
------------------------------------
http://www.teachingonline.it

  Reply With Quote
 
Page generated in 0.65550 seconds with 14 queries