Results 1 to 3 of 3

Thread: can i extract text from html tags using php?

  1. #1
    Join Date
    Jan 2008
    Posts
    2

    Default can i extract text from html tags using php?

    i want to extract only the text from the text with html tags stored in mysql database. plz help me with coding...
    Powered by Yahoo!

  2. #2
    Join Date
    Jan 2008
    Posts
    1

    Default

    all you need to do is this...
    $textWHTML='<b>text</b>';
    $textWOHTML = strip_tags($textWHTML);

    strip_tags will strip out html and php codes from a string.
    Powered by Yahoo!

  3. #3
    Join Date
    Jan 2008
    Posts
    1

    Default

    That easily done, PHP, JSP, whatever; even XSLT done by mistake would do that by mistake. Although HTML has to be in properly formed XML format.
    Powered by Yahoo!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •