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
