Jason #3: check out openbd's html function:
http://www.openbd.org/manual/?/function/html


On Tue, Nov 15, 2011 at 4:13 PM, Jason King <[email protected]> wrote:

> left(var,80) is how I'm abbreviating the message to be displayed so it
> fits on 1 line.
>
> On Tue, Nov 15, 2011 at 3:12 PM, Jason King <[email protected]>
> wrote:
> > So far I have
> >
> > #left(REReplaceNoCase(body,"<[^>]*>","","ALL"), 80)#
> >
> > but that's killing everything.
> >
> > On Tue, Nov 15, 2011 at 3:11 PM, Jason Allen <[email protected]>
> wrote:
> >> Hi Guys,
> >>
> >> I need to be able to strip out certain html tags and/or grab some info
> >> from within tags.
> >>
> >> This may be two different functions, but I'm trying to figure out the
> >> best way to go about this.
> >>
> >> Let's say I have the following string and it's set to VAR
> >>
> >> <p><img alt="" src="http://i617.photobucket.com/albums/tt257/jason/
> >> _729525533_n.jpg" style="width: 614px; height: 502px; " /></p>
> >>
> >> So #var# is that string.
> >>
> >> I need to remove the <p> (and other html tags like <b>)
> >>
> >> I also want to grab the src link out of the img tag.
> >>
> >> This is for a messaging app, and I'm trying to grab the first 80
> >> characters of a message and display that in the user's inbox. I need
> >> to allow some basic formatting in the messaging app, and users can add
> >> images, etc. Problem is when I do a simple left(var,80) it doesn't
> >> remove all of the html, and the html breaks that inbox formatting.
> >>
> >> So if the message was #var# I'd want to take it from
> >>
> >> <p><img alt="" src="http://i617.photobucket.com/albums/tt257/jason/
> >> _729525533_n.jpg" style="width: 614px; height: 502px; " /></p>
> >>
> >> to
> >>
> >> http://i617.photobucket.com/albums/tt257/jason/_729525533_n.jpg
> >>
> >> Ideas?
> >>
> >> --
> >> official tag/function reference: http://openbd.org/manual/
> >>  mailing list - http://groups.google.com/group/openbd?hl=en
> >>
> >
>
> --
> official tag/function reference: http://openbd.org/manual/
>  mailing list - http://groups.google.com/group/openbd?hl=en
>

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to