English
Source / code snippets

Strip Striptags Tags

 

CompileMarkSeparation
strip_tags(string s){

    case s== : return
    long l=len(s),p=instr(<,s),p2=instr(>,s)

    while p and p2 {

        s=del$(s,p,p2-p+1)
        p=instr(<,s)
        p2=instr(>,s)

    }

    return s

F>}


CompileMarkSeparation
proc STRIP_TAGS

    PARAMETERS s$

    IF s$=

        RETURN

    ENDIF

    var L&=LEN(s$)
    var P&=INSTR(<,s$)
    var P2&=INSTR(>,s$)

    WHILE P& AND P2&

        s$=DEL$(s$,P&,P2&-P&+1)
        P&=INSTR(<,s$)
        P2&=INSTR(>,s$)

    ENDWHILE

    RETURN s$

endproc

 
06/22/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.405 Views

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie