• Strip Text to Plain Text

    From High Spirit@VERT/DCBBS to All on Wed Oct 31 19:20:55 2018
    Is there a command to strip ANSI code or anything else out of a string and return plain text?

    Thanks.

    -- High Spirit Digital Realms Main - connect.digitalrealms.net 23
    Digital Realms C=64 - connect.digitalrealms.net 6400

    ---
    þ Synchronet þ Digital Realms BBS - connect.digitalrealms.net:23
  • From Digital Man@VERT to High Spirit on Wed Oct 31 18:00:25 2018
    Re: Strip Text to Plain Text
    By: High Spirit to All on Wed Oct 31 2018 12:20 pm

    Is there a command to strip ANSI code or anything else out of a string and return plain text?

    There are functions to strip ctrl characters and ctrl-a sequences (strip_ctrl) and extended-ASCII (strip_exascii):
    http://synchro.net/docs/jsobjs.html

    digital man

    Synchronet "Real Fact" #42:
    Rob Swindell was laughed out of a FidoNet Net103 (OC, Calif.) meeting in 1992. Norco, CA WX: 73.9øF, 12.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to High Spirit on Wed Oct 31 17:48:44 2018
    Re: Strip Text to Plain Text
    By: High Spirit to All on Wed Oct 31 2018 12:20 pm

    Is there a command to strip ANSI code or anything else out of a string and return plain text?

    I'm not sure about stripping ANSI codes, but there are these functions: strip_ctrl(): Removes control codes from a string
    strip_exascii(): Removes extended-ASCII characters from a string


    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com