Restaurant coupons to Mobile phones

Discussion in 'PHP' started by dsimi, Apr 7, 2010.

  1. #1
    Hello,

    Iam using connections plugin for restaurant coupons lists. And also iam using SMS text message plugin to send restaurant coupons. I have added the smstextmessage.php code into connections plugin's restaurant lists to send coupons (into card.php) . If i enter my mobile number iam getting coupons successfully. But iam getting restaurant title and address with HTML codings to my mobile. How to get plain text only title and address?. Pls help me to fix.

    Coupon is sending to mobile like this:
    SubJ:<spanclass+"title>BaciRestaurant and MSG::<div class="adr"style="margin-bottom:10px:"><div (con't)2 of 3 class+ "street-address: 4 N Washington St and on

    Code for taking coupons address and title:
    $body = $entry->getAddressBlock();
    $subject = $entry->getTitleBlock();
     
    dsimi, Apr 7, 2010 IP
  2. viron86

    viron86 Active Member

    Messages:
    426
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    i think strip_tags() might help you
    this function removes all html content from a given string
     
    viron86, Apr 7, 2010 IP
  3. dsimi

    dsimi Member

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #3
    Still iam getting with HTML tags. Pls look at textanddine.com/?page_id=18

    Thank you
     
    dsimi, Apr 8, 2010 IP