Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't display HTML effect on browser
Message
From
29/11/2002 01:27:43
 
 
To
29/11/2002 01:16:54
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00728100
Message ID:
00728101
Views:
30
>But I don't want the input text having the HTML effect when it display, (even users have type HTML tag into the input box, then the screen only display same thing(not HTML effect) they type after they post it).

The following will remove any tag from an HTML block for such a need:
* Remove all tags from an HTML text
* expC1 Content
FUNCTION ExtractTag
PARAMETER tcContent
LOCAL lnStart,lnStop
lnStart=1
lnStop=0
tcContent=ALLTRIM(tcContent)
DO WHILE lnStart>0
   lnStart=AT('<',tcContent)
   lnStop=AT('>',SUBSTR(tcContent,lnStart))
   IF lnStart=0 OR lnStop=0
      EXIT
   ENDIF
   IF lnStart=1
      tcContent=SUBSTR(tcContent,lnStop+1)
      ELSE
      tcContent=LEFT(tcContent,lnStart-1)+SUBSTR(tcContent,lnStart+lnStop)
   ENDIF
ENDDO

* Now, for all the rest, we need to make sure, that we don't have a single < in the string
tcContent=STRTRAN(tcContent,'<','<')

RETURN tcContent
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform