retain HTML with spooky diet (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


AllenD -> retain HTML with spooky diet (10/19/2002 14:55:00)

How do I show HTML values when putting the DRW code on a diet? It is easy to do with the non-diet by selecting " show as html" . But if I have a field that has markup' s, how can I have them displayed? Right now I am using

<%=replace(FP_FieldVal(fp_rs," tMemo" ),chr(10),"  <br>" )%>


To retain formatting, but html is lost...Thanks.




ASPPlayground -> RE: retain HTML with spooky diet (10/19/2002 17:54:11)

Try this:

<%=replace(replace(replace(FP_FieldVal(fp_rs," tMemo" ),chr(10),"  <br>" )," &gt;" ," >" )," &lt;" ," <" )%>




Spooky -> RE: retain HTML with spooky diet (10/19/2002 23:16:55)

Also, you should be able to change the function to FP_FieldHTML instead of FP_FieldVal




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.785156E-02